Some logging refactoring.

Fixes #14.
This commit is contained in:
2020-02-29 23:30:44 +05:00
parent 5f58741159
commit 825fd724ff
9 changed files with 43 additions and 47 deletions

View File

@@ -26,7 +26,7 @@ func (c *Context) initializeHTTPServer() {
go func() {
c.Echo.Logger.Fatal(c.Echo.Start(listenAddress))
}()
c.Logger.Info().Msgf("Started HTTP server at %s", listenAddress)
c.Logger.Info().Str("address", listenAddress).Msg("Started HTTP server")
}
// Wrapper around previous function.