Don't spam logs with missing keys
This commit is contained in:
parent
f2bf42e7ac
commit
c2e8029837
|
@ -183,7 +183,9 @@ struct RocksDBKeyValueStore : IKeyValueStore {
|
|||
if (s.ok()) {
|
||||
a.result.send(Value(toStringRef(value)));
|
||||
} else {
|
||||
TraceEvent(SevError, "RocksDBError").detail("Error", s.ToString()).detail("Method", "ReadValue");
|
||||
if (!s.IsNotFound()) {
|
||||
TraceEvent(SevError, "RocksDBError").detail("Error", s.ToString()).detail("Method", "ReadValue");
|
||||
}
|
||||
a.result.send(Optional<Value>());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue