|
|
|
@ -64,7 +64,7 @@ except:
|
|
|
|
config['version'] = version
|
|
|
|
config['version'] = version
|
|
|
|
config['configpath'] = os.path.dirname(configpath)
|
|
|
|
config['configpath'] = os.path.dirname(configpath)
|
|
|
|
if 'timezone' not in config: config['timezone'] = 'UTC'
|
|
|
|
if 'timezone' not in config: config['timezone'] = 'UTC'
|
|
|
|
if 'debug' not in config: config['debug'] = False
|
|
|
|
if 'debug' not in config: config['debug'] = os.getenv('DEBUG') or False
|
|
|
|
|
|
|
|
|
|
|
|
logging.basicConfig(
|
|
|
|
logging.basicConfig(
|
|
|
|
format = '%(asctime)s.%(msecs)03d [%(levelname)s] %(name)s: %(message)s' if config['hide_ts'] == False else '[%(levelname)s] %(name)s: %(message)s',
|
|
|
|
format = '%(asctime)s.%(msecs)03d [%(levelname)s] %(name)s: %(message)s' if config['hide_ts'] == False else '[%(levelname)s] %(name)s: %(message)s',
|
|
|
|
|