Log listen addresses
This commit is contained in:
parent
80acc281b9
commit
64feefa7a5
@ -75,10 +75,10 @@ func ActionServe(c *cli.Context) error {
|
||||
ws.ListenAddr = cfg.HTTPListenAddr
|
||||
ws.Logger = logger
|
||||
go func() {
|
||||
s.Logger.Info("Starting web-server.")
|
||||
s.Logger.Infow("Starting HTTP server.", "listen_addr", ws.ListenAddr)
|
||||
err := ws.Serve()
|
||||
if err != nil && err != http.ErrServerClosed {
|
||||
s.Logger.Infow("Web server shut down with error.", "err", err)
|
||||
s.Logger.Infow("HTTP server shut down with error.", "err", err)
|
||||
}
|
||||
close(webDone)
|
||||
}()
|
||||
@ -95,7 +95,7 @@ func ActionServe(c *cli.Context) error {
|
||||
}()
|
||||
|
||||
// Start RTMP-server
|
||||
s.Logger.Info("Starting RTMP-server.")
|
||||
s.Logger.Infow("Starting RTMP server.", "listen_addr", s.ListenAddr)
|
||||
if err := s.Listen(); err != nil {
|
||||
return cli.Exit(err, ExitGenericError)
|
||||
}
|
||||
|
@ -2,7 +2,7 @@ package dogtamer
|
||||
|
||||
import "fmt"
|
||||
|
||||
const Version string = "v0.1.3"
|
||||
const Version string = "v0.1.4"
|
||||
|
||||
var Build string
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user