Skip to content

Commit 52ba074

Browse files
committed
Use bitcoin log system when IPC connection fail
This commit aligns the logs with the config logs and uses the internal bitcoin system. This give better logs, specificly timestamped logs.
1 parent 6b871ae commit 52ba074

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sv2-tp.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ MAIN_FUNCTION
172172
node_init = mine_init->ipc()->connectAddress(address);
173173
break; // Success: break out of the loop
174174
} catch (const std::exception& exception) {
175-
tfm::format(std::cerr, "IPC connection failed: %s\n", exception.what());
176-
tfm::format(std::cerr, "bitcoin-node might not be running or listening on a UNIX socket.\n");
177-
tfm::format(std::cerr, "Retrying in 10 seconds...\n\n");
175+
LogPrintf("IPC connection failed: %s\n", exception.what());
176+
LogPrintf("bitcoin-node might not be running or listening on a UNIX socket.\n");
177+
LogPrintf("Retrying in 10 seconds...\n");
178178

179179
std::this_thread::sleep_for(std::chrono::seconds(10));
180180
}

0 commit comments

Comments
 (0)