From: root sagunt Date: Thu, 6 Jun 2013 10:54:15 +0000 (+0000) Subject: git_buildpackage: less logging X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=9ff3a2d9e13d50a788bc0cb05cb2f98c2bf1b6a0;p=profitbricks%2Fjenkins-build-scripts.git git_buildpackage: less logging --- diff --git a/lib/git_buildpackage.py b/lib/git_buildpackage.py index b84faeb..c7c074c 100644 --- a/lib/git_buildpackage.py +++ b/lib/git_buildpackage.py @@ -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