don't show wxLogDebug during app startup output in msg box
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
fd725bce37
commit
83250f1a2b
@ -302,6 +302,7 @@ public:
|
|||||||
virtual void Flush();
|
virtual void Flush();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t);
|
||||||
virtual void DoLogString(const wxChar *szString, time_t t);
|
virtual void DoLogString(const wxChar *szString, time_t t);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -536,6 +536,30 @@ void wxLogBuffer::Flush()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxLogBuffer::DoLog(wxLogLevel level, const wxChar *szString, time_t t)
|
||||||
|
{
|
||||||
|
switch ( level )
|
||||||
|
{
|
||||||
|
case wxLOG_Trace:
|
||||||
|
case wxLOG_Debug:
|
||||||
|
#ifdef __WXDEBUG__
|
||||||
|
// don't put debug messages in the buffer, we don't want to show
|
||||||
|
// them to the user in a msg box, log them immediately
|
||||||
|
{
|
||||||
|
wxString str;
|
||||||
|
TimeStamp(&str);
|
||||||
|
str += szString;
|
||||||
|
|
||||||
|
wxMessageOutputDebug().Printf(_T("%s\n"), str.c_str());
|
||||||
|
}
|
||||||
|
#endif // __WXDEBUG__
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
wxLog::DoLog(level, szString, t);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void wxLogBuffer::DoLogString(const wxChar *szString, time_t WXUNUSED(t))
|
void wxLogBuffer::DoLogString(const wxChar *szString, time_t WXUNUSED(t))
|
||||||
{
|
{
|
||||||
m_str << szString << _T("\n");
|
m_str << szString << _T("\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user