X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3b9261289f6ccd54568437264c5046734bff48c3..3b8b23873a175edc3065f67a1865b7808dd6f80d:/src/common/log.cpp?ds=sidebyside diff --git a/src/common/log.cpp b/src/common/log.cpp index 72e1b385d1..666c612589 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -714,7 +714,11 @@ void wxLogWindow::DoLog(wxLogLevel level, const char *szString) ((wxLogWindow *)m_pOldLog)->DoLog(level, szString); } - if ( m_pLogFrame ) { + // don't put trace messages in the text window for 2 reasons: + // 1) there are too many of them + // 2) they may provoke other trace messages thus sending a program into an + // infinite loop + if ( m_pLogFrame && level != wxLOG_Trace ) { // and this will format it nicely and call our DoLogString() wxLog::DoLog(level, szString); }