Discussion:
[Erp5-dev] Patch to let Activities being logged in the error log too
Patrick Gerken
2006-03-29 09:45:45 UTC
Permalink
Sometimes the file based log files are a little bit too busy to find
only the relevant information.
This little patch adds the activity errors into the error log.

--- CMFActivity/ActivityTool.py 2006-03-27 14:09:04.000000000 +0200
+++ ../../../ActivityTool.py 2006-03-29 11:34:02.000000000 +0200
@@ -165,6 +165,8 @@
except:
self.is_executed = 0
self.exc_type = sys.exc_info()[0]
+ if hasattr(activity_tool, 'error_log'):
+ activity_tool.error_log.raising(sys.exc_info())
LOG('WARNING ActivityTool', 0,
'Could not call method %s on object %s' % (self.method_id,
self.object_path), error=sys.exc_info())

Patrick

Loading...