]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/log.cpp
made pre-compiling the python files optional
[wxWidgets.git] / src / common / log.cpp
index 72e1b385d126e45adb714398de18c325a4279462..666c612589e05e576a3180ca178230299b75e8ce 100644 (file)
@@ -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);
   }