add error log for https
This commit is contained in:
5
main.go
5
main.go
@@ -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)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user