]> git.llucax.com Git - software/pymin.git/commitdiff
Don't run in DEBUG mode (but print call() calls).
authorFede <fedux@linux-kt9u.site>
Thu, 18 Oct 2007 00:41:50 +0000 (21:41 -0300)
committerFede <fedux@linux-kt9u.site>
Thu, 18 Oct 2007 00:41:50 +0000 (21:41 -0300)
pymin/services/util.py

index 418616b7a99361df587f6ba3a52f8595bad7e864..d1788fc76cf65f7ec9167896d5b4e836b1a682c3 100644 (file)
@@ -12,8 +12,8 @@ except ImportError:
 from pymin.dispatcher import Handler, handler, HandlerError, \
                                 CommandNotFoundError
 
-#DEBUG = False
-DEBUG = True
+DEBUG = False
+#DEBUG = True
 
 __ALL__ = ('Error', 'ReturnNot0Error', 'ExecutionError', 'ItemError',
             'ItemAlreadyExistsError', 'ItemNotFoundError', 'ContainerError',
@@ -177,6 +177,7 @@ def call(command, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
         print 'Executing command:', command
         return
     try:
+        print 'Executing command:', command
         r = subprocess.call(command, stdin=stdin, stdout=stdout, stderr=stderr,
                                 universal_newlines=universal_newlines,
                                 close_fds=close_fds, **kw)