From 338c2a71e9d2e560c21f901a4a3f33658da8600f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 12 Aug 1998 22:38:30 +0000 Subject: [PATCH] one more minor wxLogWindow fix (I try to get it really right...) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/log.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); } -- 2.45.2