]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
git_buildpackage: less logging
authorroot sagunt <root@sagunt.profitbricks.localdomain>
Thu, 6 Jun 2013 10:54:15 +0000 (10:54 +0000)
committerroot sagunt <root@sagunt.profitbricks.localdomain>
Thu, 6 Jun 2013 10:54:15 +0000 (10:54 +0000)
lib/git_buildpackage.py

index b84faeb716665ec57743aff0d4b9e53f6bc30824..c7c074c0bc1904b5e2219d0443d99355797e1ac8 100644 (file)
@@ -5,8 +5,8 @@ import os
 import sys
 import logging
 import subprocess
-logger = logging.getLogger(__file__)
 
+logger = logging.getLogger(__file__)
 
 BIN_GIT_BUILDPACKAGE = '/usr/bin/git-buildpackage'
 BIN_SUDO = '/usr/bin/sudo'
@@ -70,19 +70,6 @@ class GitBuildPackage(object):
         # So in summary, it would be expensive and buys as nothing, as we 
         # can always generate the source from said git repos...
 
-        logger.debug(
-                'Trying to call "%s" with environment export %s'
-                %(
-                    ' '.join(self.command),
-                    ' '.join(
-                        map(
-                            lambda x: '%s="%s"' %(x[0], x[1]),
-                            self.env.iteritems()
-                        )
-                    )
-                )
-        )
-
         cmdobj = subprocess.Popen(
                 self.command,
                 shell=False,
@@ -96,11 +83,6 @@ class GitBuildPackage(object):
         )
 
         ret = cmdobj.wait()
-        if ret:
-            logger.error(
-                    '"%s" returned non-zero. exitcode was: %s'
-                    %(' '.join(self.command), ret)
-            )
         return ret