]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
logger is strange
authorHolger Levsen <holger@layer-acht.org>
Thu, 1 Sep 2011 15:22:54 +0000 (17:22 +0200)
committerHolger Levsen <holger@layer-acht.org>
Thu, 1 Sep 2011 15:22:54 +0000 (17:22 +0200)
build.py

index c84d5404a5a317b50b8eae3e075773b53e089775..862c652a874656b2835cc25381b7b0536abedefc 100755 (executable)
--- a/build.py
+++ b/build.py
@@ -404,8 +404,8 @@ if __name__ == '__main__':
     if not ret:
         build_log=os.path.join('../build-area/result/', '%s_%s_amd64.build' % (pkg_name, version))
         fh = open(build_log, 'r')
-        for line in fh.readlines():
-            logger.info(line)
+        #for line in fh.readlines():
+        logger.info('%s' % (fh.read()))
         fh.close()
     #logger.debug(os.listdir('./'))
     #logger.debug(os.listdir('../'))