From 34323c67f62b77ecefb885796d3e94285dd14f80 Mon Sep 17 00:00:00 2001 From: "kayos@tcp.direct" Date: Thu, 23 Mar 2023 01:22:08 -0700 Subject: [PATCH] Fix: HTTP server failing to listen should be fatal --- cmd/HellPot/HellPot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/HellPot/HellPot.go b/cmd/HellPot/HellPot.go index a8545aa..082989c 100644 --- a/cmd/HellPot/HellPot.go +++ b/cmd/HellPot/HellPot.go @@ -40,7 +40,7 @@ func main() { signal.Notify(stopChan, syscall.SIGINT, syscall.SIGTERM) go func() { - log.Error().Err(http.Serve()).Msg("HTTP error") + log.Fatal().Err(http.Serve()).Msg("HTTP error") }() <-stopChan // wait for SIGINT