From b912b24b0f0e3de003bd203eca39da27aeb4712b Mon Sep 17 00:00:00 2001 From: Ferry Boender Date: Mon, 27 Jul 2015 14:14:20 +0200 Subject: [PATCH] Log exit codes of scripts. --- src/formconfig.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/formconfig.py b/src/formconfig.py index 3dd16f7..0e0f103 100644 --- a/src/formconfig.py +++ b/src/formconfig.py @@ -140,6 +140,7 @@ class FormConfig(object): close_fds=True, preexec_fn=run_as_fn) stdout, stderr = proc.communicate(input) + self.log.info("Exit code: {0}".format(proc.returncode)) return proc.returncode except OSError as err: self.log.exception(err) @@ -155,6 +156,7 @@ class FormConfig(object): close_fds=True, preexec_fn=run_as_fn) stdout, stderr = proc.communicate() + self.log.info("Exit code: {0}".format(proc.returncode)) return { 'stdout': stdout, 'stderr': stderr,