changeset 3155:7dd36ca5f4b3

use logging.exception instead of traceback
author Johannes Berg <johannes AT sipsolutions DOT net>
date Sat, 01 Mar 2008 13:09:45 +0100
parents c9ff5a31b5cd
children 1508feb6dbbf
files MoinMoin/Page.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/Page.py	Sat Mar 01 12:57:24 2008 +0100
+++ b/MoinMoin/Page.py	Sat Mar 01 13:09:45 2008 +0100
@@ -1498,8 +1498,7 @@
                 page = Page(request, pagename, formatter=formatter)
                 page.send_page(content_only=1)
             except:
-                import traceback
-                traceback.print_exc(200)
+                logging.exception("pagelinks formatter failed, traceback follows")
         finally:
             request.mode_getpagelinks -= 1
             #logging.debug("mode_getpagelinks == %r" % request.mode_getpagelinks)