From 5386899d30fbe0a1791354312375443fdef63d65 Mon Sep 17 00:00:00 2001 From: Caleb Gardner Date: Sat, 3 Aug 2024 05:32:31 -0500 Subject: [PATCH] Log if http -> https redirect errors out --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 0c1c190..081b47d 100644 --- a/main.go +++ b/main.go @@ -39,7 +39,8 @@ func main() { log.Fatal("SPECIFY MONGO AND WEB-ROOT OR I WILL DIE, OH NO, THEY'RE COMING FOR ME.... **DEATH NOISES**") } go func() { - http.ListenAndServe(":80", http.RedirectHandler("https://darkstorm.tech", http.StatusPermanentRedirect)) + log.Println("error redirecting http traffice:", + http.ListenAndServe(":80", http.RedirectHandler("https://darkstorm.tech", http.StatusPermanentRedirect))) }() mux := http.NewServeMux() setupMongo(*mongoURL)