triedb/pathdb: downgrade duplicate disable log from ERROR to INFO

After an unclean shutdown, Disable() is called twice which is expected
behavior. The second call was logging at ERROR level, which was
misleading. Downgrade to INFO since this is a normal occurrence.
This commit is contained in:
CPerezz 2026-02-08 00:48:43 +01:00
parent 137a694282
commit 9493cb30fc
No known key found for this signature in database
GPG key ID: 62045F34B97177DD

View file

@ -350,7 +350,7 @@ func (db *Database) Disable() error {
}
// Prevent duplicated disable operation.
if db.waitSync {
log.Error("Reject duplicated disable operation")
log.Info("Reject duplicated disable operation")
return nil
}
db.waitSync = true