allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [1/2] git commit: [#5326] More accurate monq logging, avoid double-logging errors
Date Mon, 19 Nov 2012 20:29:32 GMT
Updated Branches:
  refs/heads/master e47c50bc5 -> 7eb795608


[#5326] More accurate monq logging, avoid double-logging errors


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/de961e25
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/de961e25
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/de961e25

Branch: refs/heads/master
Commit: de961e2526edf96797c6155d2c7a447a4a96d609
Parents: e47c50b
Author: Dave Brondsema <dbrondsema@geek.net>
Authored: Mon Nov 19 18:54:41 2012 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Mon Nov 19 20:28:59 2012 +0000

----------------------------------------------------------------------
 Allura/allura/model/monq_model.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/de961e25/Allura/allura/model/monq_model.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/monq_model.py b/Allura/allura/model/monq_model.py
index 3a8ba3a..a320666 100644
--- a/Allura/allura/model/monq_model.py
+++ b/Allura/allura/model/monq_model.py
@@ -213,7 +213,7 @@ class MonQTask(MappedClass):
         from allura import model as M
         self.time_start = datetime.utcnow()
         session(self).flush(self)
-        log.info('%r', self)
+        log.info('starting %r', self)
         old_cproject = getattr(c, 'project', None)
         old_capp = getattr(c, 'app', None)
         old_cuser = getattr(c, 'user', None)
@@ -231,7 +231,7 @@ class MonQTask(MappedClass):
             self.state = 'complete'
             return self.result
         except Exception, exc:
-            log.exception('%r', self)
+            log.info('Error on job %r, re-raising it', self)
             self.state = 'error'
             if hasattr(exc, 'format_error'):
                 self.result = exc.format_error()


Mime
View raw message