[GRASS-SVN] r42657 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jun 24 18:40:47 EDT 2010


Author: martinl
Date: 2010-06-24 22:40:47 +0000 (Thu, 24 Jun 2010)
New Revision: 42657

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py
Log:
wxGUI: don't redirect on debug level > 0
(merge r42656 from trunk)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py	2010-06-24 22:39:50 UTC (rev 42656)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py	2010-06-24 22:40:47 UTC (rev 42657)
@@ -340,7 +340,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
@@ -816,6 +816,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