Log error if it exists while serving APIs (#3276)

Co-authored-by: cesnietor <>
This commit is contained in:
Cesar N
2024-03-27 13:06:42 -07:00
committed by GitHub
parent 79bec3880e
commit 78a05d39c4

View File

@@ -86,5 +86,10 @@ func StartServer(ctx *cli.Context) error {
defer server.Shutdown()
return server.Serve()
if err = server.Serve(); err != nil {
server.Logf("error serving API: %v", err)
return err
}
return nil
}