undo stupid param name change (need to change all the calls as well if doing it)

This commit is contained in:
sqlcoder 2010-02-08 23:38:18 +00:00
parent 333ae224d4
commit 6df8bddc62

View File

@ -105,7 +105,7 @@ def get_config(file_name, fallback = True):
sys.exit()
return (file_name,True)
def get_logger(file_name, module = "config", fallback = False, log_dir=None):
def get_logger(file_name, config = "config", fallback = False, log_dir=None):
(conf_file,copied) = get_config(file_name, fallback = fallback)
if log_dir is None:
@ -119,8 +119,8 @@ def get_logger(file_name, module = "config", fallback = False, log_dir=None):
file = file.replace('\\', '\\\\') # replace each \ with \\
# print " ="+file+" "+ str(type(file))+" len="+str(len(file))+"\n"
logging.config.fileConfig(conf_file, {"logFile":file})
log = logging.getLogger(module)
log.debug("%s logger initialised" % module)
log = logging.getLogger(config)
log.debug("%s logger initialised" % config)
return log
except:
pass