Merge pull request #7 from dg0tm/fix-logging

update logging
This commit is contained in:
Jonathan Naylor 2018-08-21 21:27:28 +01:00 committed by GitHub
commit 48156d72ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);
}
}