more logging

This commit is contained in:
6543 2022-05-10 18:03:04 +02:00
parent bc3d3befee
commit 0bfc7775fb
No known key found for this signature in database
GPG key ID: C99B82E40B027BAE

View file

@ -126,6 +126,7 @@ func Serve(ctx *cli.Context) error {
if enableHTTPServer {
go func() {
log.Info().Timestamp().Msg("Start listening on :80")
err := httpServer.ListenAndServe("[::]:80")
if err != nil {
log.Panic().Err(err).Msg("Couldn't start HTTP fastServer")
@ -134,6 +135,7 @@ func Serve(ctx *cli.Context) error {
}
// Start the web fastServer
log.Info().Timestamp().Msgf("Start listening on %s", listener.Addr())
err = fastServer.Serve(listener)
if err != nil {
log.Panic().Err(err).Msg("Couldn't start fastServer")