comparison MoinMoin/server/server_standalone.py @ 3107:c6e39279f83b

refactor logging usage
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 23 Feb 2008 22:59:30 +0100
parents 80e1a910a2f1
children a48929a5036c
comparison
equal deleted inserted replaced
3106:af3dd2bc85cc 3107:c6e39279f83b
32 2005 MoinMoin:AlexanderSchremmer, 32 2005 MoinMoin:AlexanderSchremmer,
33 2005 MoinMoin:NirSoffer 33 2005 MoinMoin:NirSoffer
34 @license: GNU GPL, see COPYING for details. 34 @license: GNU GPL, see COPYING for details.
35 """ 35 """
36 36
37 import os, sys, time, socket, errno, shutil, logging 37 import os, sys, time, socket, errno, shutil
38 import BaseHTTPServer, SimpleHTTPServer, SocketServer 38 import BaseHTTPServer, SimpleHTTPServer, SocketServer
39
40 from MoinMoin.server import getLogger
41 logging = getLogger(__name__)
42
43 # use this to temporarily and selectively enable debug logging for this module
44 #logging.setLevel(logging.DEBUG)
39 45
40 from MoinMoin import version, wikiutil 46 from MoinMoin import version, wikiutil
41 from MoinMoin.server import Config, switchUID 47 from MoinMoin.server import Config, switchUID
42 from MoinMoin.request import request_standalone 48 from MoinMoin.request import request_standalone
43 from MoinMoin.util import timefuncs 49 from MoinMoin.util import timefuncs