From 8cb6bc6d8cd3695cfd33f49a13bd896f676ef341 Mon Sep 17 00:00:00 2001 From: rayaman Date: Thu, 26 Jun 2025 11:19:52 -0400 Subject: [PATCH] added error log --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index ee30fe9..d944d05 100644 --- a/main.go +++ b/main.go @@ -19,5 +19,6 @@ func main() { utils.Logger.Infof("Listening on port: %v", port) http.HandleFunc("/report", backend.ReportHandler) http.HandleFunc("/", backend.BinaryHandler) - http.ListenAndServe(":"+port, nil) + err := http.ListenAndServe(":"+port, nil) + utils.Logger.Debugf("Exit error: %v", err) }