Don't spam logs with missing keys

This commit is contained in:
Daniel Smith 2020-05-28 21:19:12 +00:00
parent f2bf42e7ac
commit c2e8029837
1 changed files with 3 additions and 1 deletions

View File

@ -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>());
}
}