mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-11 15:27:57 +00:00
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
This commit is contained in:
parent
1f7c5c5a3e
commit
847593228d
@ -192,6 +192,8 @@ void ThreadIRCSeed(void* parg)
|
|||||||
// Make this thread recognisable as the IRC seeding thread
|
// Make this thread recognisable as the IRC seeding thread
|
||||||
RenameThread("bitcoin-ircseed");
|
RenameThread("bitcoin-ircseed");
|
||||||
|
|
||||||
|
printf("ThreadIRCSeed started\n");
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ThreadIRCSeed2(parg);
|
ThreadIRCSeed2(parg);
|
||||||
@ -218,7 +220,8 @@ void ThreadIRCSeed2(void* parg)
|
|||||||
if (!GetBoolArg("-irc", false))
|
if (!GetBoolArg("-irc", false))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
printf("ThreadIRCSeed started\n");
|
printf("ThreadIRCSeed trying to connect...\n");
|
||||||
|
|
||||||
int nErrorWait = 10;
|
int nErrorWait = 10;
|
||||||
int nRetryWait = 10;
|
int nRetryWait = 10;
|
||||||
int nNameRetry = 0;
|
int nNameRetry = 0;
|
||||||
|
@ -1313,6 +1313,8 @@ void DumpAddresses()
|
|||||||
|
|
||||||
void ThreadDumpAddress2(void* parg)
|
void ThreadDumpAddress2(void* parg)
|
||||||
{
|
{
|
||||||
|
printf("ThreadDumpAddress started\n");
|
||||||
|
|
||||||
vnThreadsRunning[THREAD_DUMPADDRESS]++;
|
vnThreadsRunning[THREAD_DUMPADDRESS]++;
|
||||||
while (!fShutdown)
|
while (!fShutdown)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user