diff --git a/main.go b/main.go index 0e326a9..9ab4663 100644 --- a/main.go +++ b/main.go @@ -5,6 +5,8 @@ package main import ( "context" "net/http" + + log "github.com/sirupsen/logrus" ) func getHTTPClient(ctx context.Context) *http.Client { @@ -17,5 +19,5 @@ func getContext(r *http.Request) context.Context { func main() { initializeStorage() - http.ListenAndServe(cfg.Listen, nil) + log.WithError(http.ListenAndServe(cfg.Listen, nil)).Error("HTTP Server exited unexpectedly") }