aboutsummaryrefslogtreecommitdiff
path: root/src/noui.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <[email protected]>2013-01-11 22:57:22 +0100
committerPhilip Kaufmann <[email protected]>2013-01-11 22:57:22 +0100
commitbb41a87d57ac885dcd951a11827ca57329224802 (patch)
tree95b835188dd07de269bd06d357a7078a05ba7a67 /src/noui.cpp
parentMerge pull request #2169 from Diapolo/small_main_h_cleanup (diff)
downloaddiscoin-bb41a87d57ac885dcd951a11827ca57329224802.tar.xz
discoin-bb41a87d57ac885dcd951a11827ca57329224802.zip
add InitMessage() to noui and use debug.log for GUI
- this pull adds an InitMessage() function to noui.cpp, which outputs init messages to debug.log (this allows to remove some printf() calls from init.cpp) - change InitMessage() in bitcoin.cpp to also write init messages to debug.log to ensure nothting is missing in the log because of the removal of printf() calls in init.cpp
Diffstat (limited to 'src/noui.cpp')
-rw-r--r--src/noui.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/noui.cpp b/src/noui.cpp
index 96a8de4ee..302d05929 100644
--- a/src/noui.cpp
+++ b/src/noui.cpp
@@ -37,9 +37,15 @@ static bool noui_ThreadSafeAskFee(int64 /*nFeeRequired*/)
return true;
}
+static void noui_InitMessage(const std::string &message)
+{
+ printf("init message: %s\n", message.c_str());
+}
+
void noui_connect()
{
// Connect bitcoind signal handlers
uiInterface.ThreadSafeMessageBox.connect(noui_ThreadSafeMessageBox);
uiInterface.ThreadSafeAskFee.connect(noui_ThreadSafeAskFee);
+ uiInterface.InitMessage.connect(noui_InitMessage);
}