mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
wallet: use LogTrace for walletdb log messages at trace level
This commit is contained in:
parent
2f6dca4d1c
commit
46819f5df6
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ static int TraceSqlCallback(unsigned code, void* context, void* param1, void* pa
|
||||||
// in the log file, only expand statements that query the database, not
|
// in the log file, only expand statements that query the database, not
|
||||||
// statements that update the database.
|
// statements that update the database.
|
||||||
char* expanded{sqlite3_stmt_readonly(stmt) ? sqlite3_expanded_sql(stmt) : nullptr};
|
char* expanded{sqlite3_stmt_readonly(stmt) ? sqlite3_expanded_sql(stmt) : nullptr};
|
||||||
LogPrintf("[%s] SQLite Statement: %s\n", db->Filename(), expanded ? expanded : sqlite3_sql(stmt));
|
LogTrace(BCLog::WALLETDB, "[%s] SQLite Statement: %s\n", db->Filename(), expanded ? expanded : sqlite3_sql(stmt));
|
||||||
if (expanded) sqlite3_free(expanded);
|
if (expanded) sqlite3_free(expanded);
|
||||||
}
|
}
|
||||||
return SQLITE_OK;
|
return SQLITE_OK;
|
||||||
|
|
Loading…
Add table
Reference in a new issue