comparison MoinMoin/failure.py @ 3110:a48929a5036c

logging: make it work correctly by doing logging configuration very early
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 25 Feb 2008 03:41:39 +0100
parents 24bfe5789665
children cd6cfc715261
comparison
equal deleted inserted replaced
3109:4cd113328476 3110:a48929a5036c
4 Handle fatal errors by showing a message and debugging information. 4 Handle fatal errors by showing a message and debugging information.
5 5
6 @copyright: 2004-2005 Nir Soffer <nirs@freeshell.org> 6 @copyright: 2004-2005 Nir Soffer <nirs@freeshell.org>
7 @license: GNU GPL, see COPYING for details. 7 @license: GNU GPL, see COPYING for details.
8 """ 8 """
9 import sys, os, logging 9 import sys, os
10
11 from MoinMoin import log
12 logging = log.getLogger(__name__)
10 13
11 from MoinMoin.support import cgitb 14 from MoinMoin.support import cgitb
12 from MoinMoin.error import ConfigurationError 15 from MoinMoin.error import ConfigurationError
13 from traceback import extract_tb 16 from traceback import extract_tb
14 17