[GRASS-SVN] r42656 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jun 24 18:39:50 EDT 2010


Author: martinl
Date: 2010-06-24 22:39:50 +0000 (Thu, 24 Jun 2010)
New Revision: 42656

Modified:
   grass/trunk/gui/wxpython/gui_modules/goutput.py
Log:
wxGUI: don't redirect on debug level > 0


Modified: grass/trunk/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/goutput.py	2010-06-24 17:57:42 UTC (rev 42655)
+++ grass/trunk/gui/wxpython/gui_modules/goutput.py	2010-06-24 22:39:50 UTC (rev 42656)
@@ -341,7 +341,7 @@
         @return True redirected
         @return False failed
         """
-        if Debug.get_level() == 0:
+        if Debug.get_level() == 0 and int(grass.gisenv().get('DEBUG', 0)) == 0:
             # don't redirect when debugging is enabled
             sys.stdout = self.cmd_stdout
             sys.stderr = self.cmd_stderr
@@ -817,6 +817,9 @@
         self.message = ''
         self.printMessage = False
         
+    def flush(self):
+        pass
+    
     def write(self, s):
         if "GtkPizza" in s:
             return



More information about the grass-commit mailing list