Skip to content

Commit 9b80fc1

Browse files
committed
Prefix leveldb debug logging
Add leveldb: prefix to leveldb debug logging lines. leveldb debug messages come in various scary flavors such as: 2017-11-30 08:26:31 leveldb: Recovering log #26 2017-11-30 08:26:31 leveldb: Level-0 table #28: started 2017-11-30 08:26:31 leveldb: Level-0 table #28: 597 bytes OK 2017-11-30 08:26:31 leveldb: Delete type=0 #26 2017-11-30 08:26:31 leveldb: Delete type=3 #24 so it's reasonably important to mark them as coming from leveldb internals and not from consensus validation wallet or such. (this only affects `-debug=leveldb` or `-debug=1` otherwise you won't see them in the first place)
1 parent 6d3dc52 commit 9b80fc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dbwrapper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class CBitcoinLevelDBLogger : public leveldb::Logger {
6464

6565
assert(p <= limit);
6666
base[std::min(bufsize - 1, (int)(p - base))] = '\0';
67-
LogPrintStr(base);
67+
LogPrintf("leveldb: %s", base);
6868
if (base != buffer) {
6969
delete[] base;
7070
}

0 commit comments

Comments
 (0)