X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a20599da8927acccff3b2ce1c8f5478f2d68a90a..b9efe021b554fa3967d1442cf758435c5cd5ae8f:/src/common/init.cpp diff --git a/src/common/init.cpp b/src/common/init.cpp index 9343b390f1..aaeec98204 100644 --- a/src/common/init.cpp +++ b/src/common/init.cpp @@ -400,17 +400,13 @@ void wxEntryCleanup() int wxEntryReal(int& argc, wxChar **argv) { -#if wxUSE_LOG - // Create a non-GUI log target, to be used until GUI (if any) is ready. - // Target will be reset by wxAppConsole::Initialize, when GUI logging will work. - wxLog::GetActiveTarget(); -#endif - // library initialization if ( !wxEntryStart(argc, argv) ) { +#if wxUSE_LOG // flush any log messages explaining why we failed delete wxLog::SetActiveTarget(NULL); +#endif return -1; }