[ZODB-Dev] Debugging ConflictErrors
Dieter Maurer
dieter at handshake.de
Thu Jan 15 14:47:42 EST 2004
Thomas Güttler wrote at 2004-1-15 14:47 +0100:
>Has someone hints how to debug ConflictErrors?
> ...
>Up to now I log ConflictErrors like this:
> ...
> obj=self.root_namespace._p_jar[exc.oid]
> print "ConflictError %sv%s: retrying request. " \
> "path=%s user=%s obj=%s oid=%s" % (
> i, retries,
> path, os.environ.get("REMOTE_USER", ""), repr(exc.oid),
> obj)
"ConflictError" instances have a good string representation.
You should include "str(exc)" in your log...
--
Dieter
More information about the ZODB-Dev
mailing list