Commit 4ca4d3cf authored by Ken Manheimer's avatar Ken Manheimer

zpublisher_exception_hook(): Include exc_info in the ConflictError log

message, so we might could glean something from the event.
parent f990d294
...@@ -164,7 +164,8 @@ def zpublisher_exception_hook( ...@@ -164,7 +164,8 @@ def zpublisher_exception_hook(
# some sane protocol for this, but for now we'll use # some sane protocol for this, but for now we'll use
# brute force: # brute force:
LOG('Z2 CONFLICT', INFO, LOG('Z2 CONFLICT', INFO,
'Competing writes at, %s' % REQUEST.get('PATH_INFO', '')) 'Competing writes at, %s' % REQUEST.get('PATH_INFO', ''),
error=sys.exc_info())
raise ZPublisher.Retry raise ZPublisher.Retry
if (getattr(REQUEST.get('RESPONSE', None), '_error_format', '') if (getattr(REQUEST.get('RESPONSE', None), '_error_format', '')
...@@ -172,7 +173,7 @@ def zpublisher_exception_hook( ...@@ -172,7 +173,7 @@ def zpublisher_exception_hook(
if (published is None or published is app or if (published is None or published is app or
type(published) is ListType): type(published) is ListType):
# At least get the top-lebel object # At least get the top-level object
published=app.__bobo_traverse__(REQUEST).__of__( published=app.__bobo_traverse__(REQUEST).__of__(
RequestContainer(REQUEST)) RequestContainer(REQUEST))
......
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