From 8a2314d03fffc10b668349592de9d991446daed2 Mon Sep 17 00:00:00 2001 From: Fede Date: Wed, 17 Oct 2007 21:41:50 -0300 Subject: [PATCH] Don't run in DEBUG mode (but print call() calls). --- pymin/services/util.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 2.43.0