[GRASS-SVN] r36949 - grass/trunk/lib/python
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat May 2 16:01:29 EDT 2009
Author: martinl
Date: 2009-05-02 16:01:29 -0400 (Sat, 02 May 2009)
New Revision: 36949
Modified:
grass/trunk/lib/python/grass.py
Log:
debug level for grass.debug()
Modified: grass/trunk/lib/python/grass.py
===================================================================
--- grass/trunk/lib/python/grass.py 2009-05-02 19:41:31 UTC (rev 36948)
+++ grass/trunk/lib/python/grass.py 2009-05-02 20:01:29 UTC (rev 36949)
@@ -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