mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 11:28:59 +00:00
Don't log inscrutable 'recovered: leveldb: not found' to web GUI
This commit is contained in:
parent
15b875b116
commit
5488ae5b89
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user