Sfoglia il codice sorgente

fix https://trac.osgeo.org/grass/changeset/62348 (print full cmd)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@62351 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 anni fa
parent
commit
2b7956194e
1 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 5 2
      lib/python/pygrass/modules/interface/module.py

+ 5 - 2
lib/python/pygrass/modules/interface/module.py

@@ -350,8 +350,6 @@ class Module(object):
         self.__call__.__func__.__doc__ = self.__doc__
 
     def __call__(self, *args, **kargs):
-        self._msgr.debug(1, "Module.__call__(): %s" % (self.get_bash()))
-        
         if not args and not kargs:
             self.run()
             return
@@ -400,6 +398,11 @@ class Module(object):
                 raise ParameterError('%s is not a valid parameter.' % key)
 
         #
+        # print debug message
+        #
+        self._msgr.debug(0, "Module.__call__(): %s" % (self.get_bash()))
+
+        #
         # check if execute
         #
         if self.run_: