diff options
Diffstat (limited to 'lorrycontroller/workingstate.py')
-rw-r--r-- | lorrycontroller/workingstate.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lorrycontroller/workingstate.py b/lorrycontroller/workingstate.py index 239ee1f..2064005 100644 --- a/lorrycontroller/workingstate.py +++ b/lorrycontroller/workingstate.py @@ -32,7 +32,11 @@ class LorryFileRunner(object): def run_lorry(self, *args): cmdargs = list(args) cmdargs.append(self.lorryfile) - self.mgr.app.maybe_runcmd(cmdargs) + exit, out, err = self.mgr.app.maybe_runcmd(cmdargs) + if exit == 0: + logging.info("Lorry of %s succeeded: %s" % (self.lorryname, out)) + else: + logging.warn("Lorry of %s failed: %s" % (self.lorryname, err)) class WorkingStateManager(object): '''Manage the working state of lorry-controller''' |