]> git.saurik.com Git - wxWidgets.git/commitdiff
enable verbose messages by default in debug builds
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 15 Feb 1999 19:26:17 +0000 (19:26 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 15 Feb 1999 19:26:17 +0000 (19:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/log.cpp

index 03267bf2d3a17ab15de7720779189f6d3872e3f7..25016cd3256dc86da09813487de84957d6066f57 100644 (file)
@@ -239,7 +239,14 @@ void WXDLLEXPORT wxLogSysError(long lErrCode, const char *szFormat, ...)
 wxLog::wxLog()
 {
   m_bHasMessages = FALSE;
 wxLog::wxLog()
 {
   m_bHasMessages = FALSE;
-  m_bVerbose     = FALSE;
+
+  // enable verbose messages by default in the debug builds
+#ifdef __WXDEBUG__
+  m_bVerbose = TRUE;
+#else // release
+  m_bVerbose = FALSE;
+#endif // debug/release
+
   m_szTimeFormat = "[%d/%b/%y %H:%M:%S] ";
 }
 
   m_szTimeFormat = "[%d/%b/%y %H:%M:%S] ";
 }