From 71429ee3cfde64bc56735352c477ba76e26585a2 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Fri, 27 Jan 2017 13:42:22 +0100 Subject: [PATCH] Changes on error output --- lib/webhooks/__init__.py | 2 +- lib/webhooks/deploy.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/webhooks/__init__.py b/lib/webhooks/__init__.py index 1b9460a..9dca167 100644 --- a/lib/webhooks/__init__.py +++ b/lib/webhooks/__init__.py @@ -1,6 +1,6 @@ #!/bin/env python3 # -*- coding: utf-8 -*- -__version__ = '0.3.1' +__version__ = '0.3.2' # vim: ts=4 et list diff --git a/lib/webhooks/deploy.py b/lib/webhooks/deploy.py index 19e90af..18b6012 100644 --- a/lib/webhooks/deploy.py +++ b/lib/webhooks/deploy.py @@ -781,8 +781,11 @@ class WebhookDeployApp(object): LOG.debug("No output.") if stderrdata: msg = "Error messages on '{c}':\n{e}".format(c=cmd_str, e=to_str(stderrdata)) - LOG.warn(msg) - self.error_data.append(msg) + if ret_val: + LOG.warn(msg) + self.error_data.append(msg) + else: + LOG.debug(msg) self.print_out(msg) finally: os.chdir(cur_dir) -- 2.39.5