Commit 0558a180 authored by Yusei Tahara's avatar Yusei Tahara

Add SERVER_URL to failure notification. This is useful if we have many erp5...

Add SERVER_URL to failure notification. This is useful if we have many erp5 instances in a same machine such as erp5 express servers.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23167 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ed95b345
...@@ -295,6 +295,7 @@ Subject: %s ...@@ -295,6 +295,7 @@ Subject: %s
%s %s
Server: %s
Document: %s Document: %s
Method: %s Method: %s
Arguments:%r Arguments:%r
...@@ -305,8 +306,9 @@ Created at: ...@@ -305,8 +306,9 @@ Created at:
Exception: %s %s Exception: %s %s
%s %s
""" % (activity_tool.email_from_address, user_email, message, """ % (activity_tool.email_from_address, user_email, message, message,
message, '/'.join(self.object_path), self.method_id, self.args, self.kw, self.request_info.get('SERVER_URL', ''),
'/'.join(self.object_path), self.method_id, self.args, self.kw,
self.call_traceback, self.call_traceback,
self.exc_type, self.exc_value, self.traceback) self.exc_type, self.exc_value, self.traceback)
try: try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment