1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 08:39:46 +02:00

In AudacityApp::OnInit(), move creation of mLogger = new wxLogWindow() earlier, so that messages in LoadModules(), among others, are not lost in the log.

This commit is contained in:
v.audacity 2011-02-25 05:14:36 +00:00
parent 812bc6bf65
commit f48d2ad721

View File

@ -922,7 +922,10 @@ bool AudacityApp::OnInit()
}
#endif
mLogger = NULL;
mLogger = new wxLogWindow(NULL, wxT("Audacity Log"), false, false);
mLogger->SetActiveTarget(mLogger);
mLogger->EnableLogging(true);
mLogger->SetLogLevel(wxLOG_Max);
// Unused strings that we want to be translated, even though
// we're not using them yet...
@ -1130,11 +1133,6 @@ bool AudacityApp::OnInit()
// So we also call StartMonitoring when STOP is called.
project->MayStartMonitoring();
mLogger = new wxLogWindow(NULL, wxT("Audacity Log"), false, false);
mLogger->SetActiveTarget(mLogger);
mLogger->EnableLogging(true);
mLogger->SetLogLevel(wxLOG_Max);
#ifdef USE_FFMPEG
FFmpegStartup();
#endif