Author: johannes
Date: 2007-11-13 06:57:29 -0600 (Tue, 13 Nov 2007)
New Revision: 9797
Modified:
trunk/gnue-common/src/base/log.py
Log:
Use exception information as returned by getException() instead of using
the default Formatters' formatException()
issue123 in-progress
Modified: trunk/gnue-common/src/base/log.py
===================================================================
--- trunk/gnue-common/src/base/log.py 2007-11-12 14:34:58 UTC (rev 9796)
+++ trunk/gnue-common/src/base/log.py 2007-11-13 12:57:29 UTC (rev 9797)
@@ -313,8 +313,8 @@
(group, name, message, detail) = errors.getException(None, etype, evalue,
etraceback)
logger = "exception.%s.%s" % (group, etype)
- error_n(logger, "Unhandled exception occured",
- exc_info=(etype, evalue, etraceback))
+ text = u_("Unhandled exception %s:\n%s") % (name, detail)
+ error_n(logger, text)
# -----------------------------------------------------------------------------
# Exception and call stack logging
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.