lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [6007] Write wx debug messages to stderr


From: Greg Chicares
Subject: [lmi-commits] [6007] Write wx debug messages to stderr
Date: Wed, 29 Oct 2014 18:39:18 +0000

Revision: 6007
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6007
Author:   chicares
Date:     2014-10-29 18:39:17 +0000 (Wed, 29 Oct 2014)
Log Message:
-----------
Write wx debug messages to stderr

Modified Paths:
--------------
    lmi/trunk/ChangeLog
    lmi/trunk/skeleton.cpp

Modified: lmi/trunk/ChangeLog
===================================================================
--- lmi/trunk/ChangeLog 2014-10-28 22:46:42 UTC (rev 6006)
+++ lmi/trunk/ChangeLog 2014-10-29 18:39:17 UTC (rev 6007)
@@ -34450,3 +34450,9 @@
 Fix defect introduced 20141027T1211Z. See:
   http://lists.nongnu.org/archive/html/lmi/2014-10/msg00103.html
 
+20141029T1839Z <address@hidden> [531]
+
+  skeleton.cpp
+Write wx debug messages to stderr. See:
+  http://lists.nongnu.org/archive/html/lmi/2014-10/msg00097.html
+

Modified: lmi/trunk/skeleton.cpp
===================================================================
--- lmi/trunk/skeleton.cpp      2014-10-28 22:46:42 UTC (rev 6006)
+++ lmi/trunk/skeleton.cpp      2014-10-29 18:39:17 UTC (rev 6007)
@@ -91,6 +91,7 @@
 #include <wx/artprov.h>
 #include <wx/config.h>
 #include <wx/cshelp.h>
+#include <wx/debug.h>                   // wxIsDebuggerRunning()
 #include <wx/docmdi.h>
 #include <wx/image.h>
 #include <wx/log.h>                     // wxSafeShowMessage()
@@ -627,6 +628,11 @@
 {
     try
         {
+        if(!wxIsDebuggerRunning())
+            {
+            wxLog::SetActiveTarget(new wxLogStderr);
+            }
+
         if(false == ProcessCommandLine(argc, argv))
             {
             return false;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]