chiark / gitweb /
Fix popen command logging
authorCiaran Gultnieks <ciaran@ciarang.com>
Wed, 25 Jun 2014 08:25:47 +0000 (09:25 +0100)
committerCiaran Gultnieks <ciaran@ciarang.com>
Wed, 25 Jun 2014 08:25:55 +0000 (09:25 +0100)
fdroidserver/common.py

index a59137548ef3c03232917a5e1656e043c9934f14..e2e64cebe4d253009d4b88f426d3f0244ccd7df5 100644 (file)
@@ -1585,11 +1585,10 @@ def FDroidPopen(commands, cwd=None, shell=False, output=True):
     :returns: A PopenResult.
     """
 
-    if output:
-        if cwd:
-            cwd = os.path.normpath(cwd)
-            logging.info("Directory: %s" % cwd)
-        logging.info("> %s" % ' '.join(commands))
+    if cwd:
+        cwd = os.path.normpath(cwd)
+        logging.debug("Directory: %s" % cwd)
+    logging.debug("> %s" % ' '.join(commands))
 
     result = PopenResult()
     p = subprocess.Popen(commands, cwd=cwd, shell=shell,