Don't log inscrutable 'recovered: leveldb: not found' to web GUI

This commit is contained in:
Jakob Borg 2014-10-16 13:45:42 +02:00
parent 15b875b116
commit 5488ae5b89

View File

@ -1300,7 +1300,7 @@ func (m *Model) leveldbPanicWorkaround() {
if pnc := recover(); pnc != nil { if pnc := recover(); pnc != nil {
if err, ok := pnc.(error); ok && strings.Contains(err.Error(), "leveldb") { if err, ok := pnc.(error); ok && strings.Contains(err.Error(), "leveldb") {
l.Warnln("recovered:", err) l.Infoln("recovered:", err)
} else { } else {
// Any non-leveldb error is genuine and should continue panicing. // Any non-leveldb error is genuine and should continue panicing.
panic(err) panic(err)