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:
Christoph Kottke 2018-07-31 13:07:31 +02:00
parent e349b45fa4
commit 6b668396db
2 changed files with 2 additions and 0 deletions

View file

@ -182,6 +182,7 @@ bool CIRCDDBGatewayAppD::init()
wxLog* log = new CLogger(m_logDir, logBaseName);
wxLog::SetActiveTarget(log);
wxLog::SetVerbose();
} else {
new wxLogNull;
}

View file

@ -405,6 +405,7 @@ void CIRCDDBGatewayThread::run()
}
}
wxLog::FlushActive();
::wxMilliSleep(TIME_PER_TIC_MS);
}
}