From 515f086ba253e9b1ecd7015efcb137404a6824d0 Mon Sep 17 00:00:00 2001 From: Mikhail Goncharov Date: Wed, 4 Nov 2020 09:34:32 +0100 Subject: [PATCH] log git apply output in case of error --- scripts/patch_diff.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/patch_diff.py b/scripts/patch_diff.py index 737fc3c..4df3952 100755 --- a/scripts/patch_diff.py +++ b/scripts/patch_diff.py @@ -260,6 +260,8 @@ class ApplyPatch: proc = subprocess.run('git apply -', input=patch, shell=True, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) if proc.returncode != 0: + logging.info(proc.stdout) + logging.error(proc.stderr) message = f":bk-status-failed: Failed to apply [{patch_file}](artifact://{patch_file}).\n\n" if self.revision_id != revision['id']: message += f"**Attention! D{revision['id']} is one of the dependencies of the target " \