Improve logging, hook up ion with zap logger

This commit is contained in:
David Zhao
2021-06-09 12:31:29 -07:00
parent 321ebab99b
commit abedc05ce5
9 changed files with 59 additions and 60 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ func RecoverSilent() {
func Recover() {
if r := recover(); r != nil {
log := logger.Desugar().WithOptions(zap.AddCallerSkip(1))
log := logger.GetLogger().WithOptions(zap.AddCallerSkip(1))
log.Error("recovered panic", zap.Any("error", r))
}
}