mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-13 16:48:08 +00:00
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)
This commit is contained in:
parent
6d3dc52b6b
commit
9b80fc1498
@ -64,7 +64,7 @@ public:
|
|||||||
|
|
||||||
assert(p <= limit);
|
assert(p <= limit);
|
||||||
base[std::min(bufsize - 1, (int)(p - base))] = '\0';
|
base[std::min(bufsize - 1, (int)(p - base))] = '\0';
|
||||||
LogPrintStr(base);
|
LogPrintf("leveldb: %s", base);
|
||||||
if (base != buffer) {
|
if (base != buffer) {
|
||||||
delete[] base;
|
delete[] base;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user