From e5c08f69a9f13ca38576a56e0ca710eaa55d7416 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Z=C3=BCrcher?= Date: Wed, 30 Apr 2025 08:27:51 +0200 Subject: [PATCH] add error log for https --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 9de5028..914b049 100644 --- a/main.go +++ b/main.go @@ -44,6 +44,9 @@ func main() { }() dbmHandler.Log.Info("main", fmt.Sprintf("https listen on %d", a.Port.Https)) - panic(s.ServeHttps(a.Port.Https, a.Cert)) + if err := s.ServeHttps(a.Port.Https, a.Cert); err != nil { + dbmHandler.Log.Error("main", "error http server "+err.Error()) + panic(err) + } }