You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2012/09/19 20:43:27 UTC
[19/50] git commit: [#4914] put error message in the log line,
for better error reporting
[#4914] put error message in the log line, for better error reporting
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/29dc95e0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/29dc95e0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/29dc95e0
Branch: refs/heads/master
Commit: 29dc95e092b25cb5fa7b4ebf034d42a197576799
Parents: e7ece83
Author: Dave Brondsema <db...@geek.net>
Authored: Fri Sep 14 19:30:24 2012 +0000
Committer: Cory Johns <jo...@geek.net>
Committed: Fri Sep 14 19:45:26 2012 +0000
----------------------------------------------------------------------
Allura/allura/command/taskd.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/29dc95e0/Allura/allura/command/taskd.py
----------------------------------------------------------------------
diff --git a/Allura/allura/command/taskd.py b/Allura/allura/command/taskd.py
index 64f953b..c6a6451 100644
--- a/Allura/allura/command/taskd.py
+++ b/Allura/allura/command/taskd.py
@@ -96,12 +96,12 @@ class TaskdCommand(base.Command):
r = Request.blank('/--%s--/' % self.task.task_name, dict(task=self.task))
list(wsgi_app(r.environ, start_response))
self.task = None
- except Exception:
+ except Exception as e:
if self.keep_running:
- base.log.exception('taskd error; pausing for 10s before taking more tasks')
+ base.log.exception('taskd error %s; pausing for 10s before taking more tasks' % e)
time.sleep(10)
else:
- base.log.exception('taskd error')
+ base.log.exception('taskd error %s' % e)
base.log.info('taskd pid %s stopping gracefully.' % os.getpid())
if self.restart_when_done: