From 5b4b3ed28151b916dfdb9d1440c275791812ff7b Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Wed, 25 Sep 2013 11:07:25 -0700 Subject: [PATCH] LOGGER now set to None by default Init happens in test setup func or Main --- python/ycm/server/ycmd.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/ycm/server/ycmd.py b/python/ycm/server/ycmd.py index ae2a314f..028682f5 100755 --- a/python/ycm/server/ycmd.py +++ b/python/ycm/server/ycmd.py @@ -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() )