[GRASS-SVN] r36951 - grass/branches/develbranch_6/lib/python

svn_grass at osgeo.org svn_grass at osgeo.org
Sat May 2 16:17:35 EDT 2009


Author: martinl
Date: 2009-05-02 16:17:35 -0400 (Sat, 02 May 2009)
New Revision: 36951

Modified:
   grass/branches/develbranch_6/lib/python/grass.py
Log:
debug level for grass.debug()
      (merge from trunk, r36949)


Modified: grass/branches/develbranch_6/lib/python/grass.py
===================================================================
--- grass/branches/develbranch_6/lib/python/grass.py	2009-05-02 20:14:21 UTC (rev 36950)
+++ grass/branches/develbranch_6/lib/python/grass.py	2009-05-02 20:17:35 UTC (rev 36951)
@@ -135,10 +135,10 @@
     """Display a message using g.message"""
     run_command("g.message", flags = flag, message = msg)
 
-def debug(msg):
+def debug(msg, debug = 1):
     """Display a debugging message using g.message -d"""
-    message(msg, flag = 'd')
-
+    run_command("g.message", flags = 'd', message = msg, debug = debug)
+    
 def verbose(msg):
     """Display a verbose message using g.message -v"""
     message(msg, flag = 'v')



More information about the grass-commit mailing list