From: Philip Kaufmann Date: Sun, 14 Oct 2012 11:43:42 +0000 (+0200) Subject: fix some thread related log messages X-Git-Tag: nvc-v0.5.3~30^2~1 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=d041e87aaf08bb731a6a839d135a0a444b717ede;hp=ce2bd54eb512e1ee9d2f9d9e760b34ff4187d94f fix some thread related log messages - "ThreadIRCSeed started" was not displayed, even if the thread ran (although only for a short time as the "do we want this thread?"-checks happen IN ThreadIRCSeed2()) - the patch ensures we always get that message - add a "ThreadIRCSeed trying to connect..." message - add missing "ThreadDumpAddress started" message --- diff --git a/src/irc.cpp b/src/irc.cpp index e5d9955..25033df 100644 --- a/src/irc.cpp +++ b/src/irc.cpp @@ -192,6 +192,8 @@ void ThreadIRCSeed(void* parg) // Make this thread recognisable as the IRC seeding thread RenameThread("novacoin-ircseed"); + printf("ThreadIRCSeed started\n"); + try { ThreadIRCSeed2(parg); @@ -218,7 +220,8 @@ void ThreadIRCSeed2(void* parg) if (!GetBoolArg("-irc", true)) return; - printf("ThreadIRCSeed started\n"); + printf("ThreadIRCSeed trying to connect...\n"); + int nErrorWait = 10; int nRetryWait = 10; int nNameRetry = 0; diff --git a/src/net.cpp b/src/net.cpp index e1ac9a2..4f99447 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1218,6 +1218,8 @@ void DumpAddresses() void ThreadDumpAddress2(void* parg) { + printf("ThreadDumpAddress started\n"); + vnThreadsRunning[THREAD_DUMPADDRESS]++; while (!fShutdown) {