Skip to content

Commit 46819f5

Browse files
committed
wallet: use LogTrace for walletdb log messages at trace level
1 parent 2f6dca4 commit 46819f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/sqlite.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static int TraceSqlCallback(unsigned code, void* context, void* param1, void* pa
5252
// in the log file, only expand statements that query the database, not
5353
// statements that update the database.
5454
char* expanded{sqlite3_stmt_readonly(stmt) ? sqlite3_expanded_sql(stmt) : nullptr};
55-
LogPrintf("[%s] SQLite Statement: %s\n", db->Filename(), expanded ? expanded : sqlite3_sql(stmt));
55+
LogTrace(BCLog::WALLETDB, "[%s] SQLite Statement: %s\n", db->Filename(), expanded ? expanded : sqlite3_sql(stmt));
5656
if (expanded) sqlite3_free(expanded);
5757
}
5858
return SQLITE_OK;

0 commit comments

Comments
 (0)