From a36f81e158fa3d26fb06734bac438bfa52a777a2 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 6 Dec 2003 13:23:20 +0000 Subject: [PATCH] Handled detailedTracebacks again. --- src/log.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/log.py b/src/log.py index 1af8d270b..729e55de4 100644 --- a/src/log.py +++ b/src/log.py @@ -63,7 +63,10 @@ class Formatter(logging.Formatter): for exn in deadlyExceptions: if issubclass(e.__class__, exn): raise - return cgitb.text((E, e, tb)).rstrip('\r\n') + if conf.detailedTracebacks: + return cgitb.text((E, e, tb)).rstrip('\r\n') + else: + return logging.Formatter.formatException(self, (E, e, tb)) class BetterStreamHandler(logging.StreamHandler):