]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
fix for msg in git_helper.py
authorMathias Klette <mathias.klette@profitbricks.com>
Mon, 2 Jan 2012 23:05:47 +0000 (00:05 +0100)
committerMathias Klette <mathias.klette@profitbricks.com>
Mon, 2 Jan 2012 23:05:47 +0000 (00:05 +0100)
lib/git_helper.py

index fb3d74ebcaf54a5a85d100b55020ebd296e72c3d..d932a21d8a98c4910605064cee206c8cd49d91d6 100644 (file)
@@ -169,7 +169,12 @@ def git_checkout_submodule():
     )
     ret = cmdobj.wait()
     out = cmdobj.stdout.read()
-    msg = '%s returned %s: ' % (' '.join(cmd), ret, out)
+    msg = '%s returned %s:\n%s' % 
+              (
+                  ' '.join(cmd), 
+                  ret, 
+                  out,
+              )
 
     if ret:
         logger.error(msg)
@@ -189,7 +194,12 @@ def git_checkout_submodule():
     )
     ret = cmdobj.wait()
     out = cmdobj.stdout.read()
-    msg = '%s returned %s: ' % (' '.join(cmd), ret, out)
+    msg = '%s returned %s:\n%s' % 
+              (
+                  ' '.join(cmd), 
+                  ret, 
+                  out,
+              )
 
     if ret:
         logger.error(msg)