mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-01 16:53:52 +02:00
Merge bitcoin/bitcoin#32967: log: [refactor] Use info level for init logs
face8123fdlog: [refactor] Use info level for init logs (MarcoFalke)fa183761cblog: Remove function name from init logs (MarcoFalke) Pull request description: Many of the normal, and expected init logs, which are run once after startup use the deprecated alias of `LogInfo`. Fix that by using `LogInfo` directly, which is a refactor, except for a few log lines that also have `__func__` removed. (Also remove the unused trailing `\n` char while touching those logs) ACKs for top commit: stickies-v: re-ACKface8123fdfanquake: ACKface8123fdTree-SHA512: 28c296129c9a31dff04f529c53db75057eae8a73fc7419e2f3068963dbb7b7fb9a457b2653f9120361fdb06ac97d1ee2be815c09ac659780dff01d7cd29f8480
This commit is contained in:
@@ -57,7 +57,7 @@ void IpcPipeTest()
|
||||
std::promise<std::unique_ptr<mp::ProxyClient<gen::FooInterface>>> foo_promise;
|
||||
std::function<void()> disconnect_client;
|
||||
std::thread thread([&]() {
|
||||
mp::EventLoop loop("IpcPipeTest", [](bool raise, const std::string& log) { LogPrintf("LOG%i: %s\n", raise, log); });
|
||||
mp::EventLoop loop("IpcPipeTest", [](bool raise, const std::string& log) { LogInfo("LOG%i: %s", raise, log); });
|
||||
auto pipe = loop.m_io_context.provider->newTwoWayPipe();
|
||||
|
||||
auto connection_client = std::make_unique<mp::Connection>(loop, kj::mv(pipe.ends[0]));
|
||||
|
||||
@@ -74,7 +74,7 @@ struct LogSetup : public BasicTestingSetup {
|
||||
~LogSetup()
|
||||
{
|
||||
LogInstance().m_file_path = prev_log_path;
|
||||
LogPrintf("Sentinel log to reopen log file\n");
|
||||
LogInfo("Sentinel log to reopen log file");
|
||||
LogInstance().m_print_to_file = prev_print_to_file;
|
||||
LogInstance().m_reopen_file = prev_reopen_file;
|
||||
LogInstance().m_log_timestamps = prev_log_timestamps;
|
||||
|
||||
@@ -52,8 +52,8 @@ CreateAndActivateUTXOSnapshot(
|
||||
std::move(auto_outfile), // Will close auto_outfile.
|
||||
snapshot_path,
|
||||
snapshot_path);
|
||||
LogPrintf(
|
||||
"Wrote UTXO snapshot to %s: %s\n", fs::PathToString(snapshot_path.make_preferred()), result.write());
|
||||
LogInfo("Wrote UTXO snapshot to %s: %s",
|
||||
fs::PathToString(snapshot_path.make_preferred()), result.write());
|
||||
|
||||
// Read the written snapshot in and then activate it.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user