From 43172df4020fe57dfcf005b1b1a86a3451b7b091 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Sat, 15 Dec 2012 18:01:05 +0800 Subject: [PATCH] more logging about command status --- archreposrv | 3 +++ 1 file changed, 3 insertions(+) diff --git a/archreposrv b/archreposrv index 71dc0a3..287fb40 100755 --- a/archreposrv +++ b/archreposrv @@ -76,6 +76,9 @@ class RepoMan: if status == 0 and callbacks: for cb in callbacks: cb() + logging.info('previous command done.') + else: + logging.warn('previous command failed with status code %d.', status) self.run_command() def _do_cmd(self, cmd, items, callbacks):