Log listen addresses

This commit is contained in:
Torjus Håkestad 2021-09-02 02:53:25 +02:00
parent 80acc281b9
commit 64feefa7a5
2 changed files with 4 additions and 4 deletions

View File

@ -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)
}

View File

@ -2,7 +2,7 @@ package dogtamer
import "fmt"
const Version string = "v0.1.3"
const Version string = "v0.1.4"
var Build string