From: Fede Date: Thu, 18 Oct 2007 00:41:50 +0000 (-0300) Subject: Don't run in DEBUG mode (but print call() calls). X-Git-Url: https://git.llucax.com/software/pymin.git/commitdiff_plain/8a2314d03fffc10b668349592de9d991446daed2?ds=sidebyside;hp=b276cdc94ede3b794301573f61ce9288a51aa432 Don't run in DEBUG mode (but print call() calls). --- diff --git a/pymin/services/util.py b/pymin/services/util.py index 418616b..d1788fc 100644 --- a/pymin/services/util.py +++ b/pymin/services/util.py @@ -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)