add error log for https

This commit is contained in:
Adrian Zürcher
2025-04-30 08:27:51 +02:00
parent f5890c1563
commit e5c08f69a9

View File

@@ -44,6 +44,9 @@ func main() {
}() }()
dbmHandler.Log.Info("main", fmt.Sprintf("https listen on %d", a.Port.Https)) 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)
}
} }