Skip to content

Commit

Permalink
leveldb: Log messages from leveldb with category and debug level
Browse files Browse the repository at this point in the history
  • Loading branch information
laanwj committed May 25, 2022
1 parent 18ec120 commit ce92071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dbwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class CBitcoinLevelDBLogger : public leveldb::Logger {

assert(p <= limit);
base[std::min(bufsize - 1, (int)(p - base))] = '\0';
LogPrintf("leveldb: %s", base); /* Continued */
LogPrintLevel(BCLog::Level::Debug, BCLog::LEVELDB, "%s", base); /* Continued */
if (base != buffer) {
delete[] base;
}
Expand Down

0 comments on commit ce92071

Please sign in to comment.