LOGGER now set to None by default

Init happens in test setup func or Main
This commit is contained in:
Strahinja Val Markovic 2013-09-25 11:07:25 -07:00
parent 4c6a69b432
commit 5b4b3ed281

View File

@ -44,8 +44,7 @@ import argparse
bottle.Request.MEMFILE_MAX = 300 * 1024
SERVER_STATE = None
# TODO: is init needed here?
LOGGER = logging.getLogger( __name__ )
LOGGER = None
app = bottle.Bottle()
@ -143,7 +142,8 @@ def _SetUserOptions( options ):
def SetServerStateToDefaults():
global SERVER_STATE
global SERVER_STATE, LOGGER
LOGGER = logging.getLogger( __name__ )
user_options_store.LoadDefaults()
SERVER_STATE = server_state.ServerState( user_options_store.GetAll() )