mirror of
https://github.com/g4klx/ircDDBGateway.git
synced 2026-01-24 00:50:19 +01:00
update logging
* aktivate verbose mode
verbose messages are logged as the normal ones instead of being silently dropped
* wxLogXXX from threads
only the GUI wxApp called wxLog::FlushActive() in idle time. wxAppConsole doesn't
show LogMessages from Threads.
This commit is contained in:
parent
e349b45fa4
commit
6b668396db
|
|
@ -182,6 +182,7 @@ bool CIRCDDBGatewayAppD::init()
|
|||
|
||||
wxLog* log = new CLogger(m_logDir, logBaseName);
|
||||
wxLog::SetActiveTarget(log);
|
||||
wxLog::SetVerbose();
|
||||
} else {
|
||||
new wxLogNull;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -405,6 +405,7 @@ void CIRCDDBGatewayThread::run()
|
|||
}
|
||||
}
|
||||
|
||||
wxLog::FlushActive();
|
||||
::wxMilliSleep(TIME_PER_TIC_MS);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue