diff --git a/cmd/picoshare/main.go b/cmd/picoshare/main.go index d44c4a50..60f52fd1 100644 --- a/cmd/picoshare/main.go +++ b/cmd/picoshare/main.go @@ -61,7 +61,7 @@ func main() { httpSrv := http.Server{Addr: fmt.Sprintf(":%s", port), Handler: h} go func() { log.Printf("listening on %s", port) - log.Fatal(httpSrv.ListenAndServe()) + log.Printf("http server exit: %s", httpSrv.ListenAndServe()) }() <-stop ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)