Only log to file if not logging to stdout
This commit is contained in:
parent
8f49c3e95d
commit
6c35aed767
|
@ -77,10 +77,11 @@ def main(configuration):
|
||||||
logger.setLevel(logging.DEBUG)
|
logger.setLevel(logging.DEBUG)
|
||||||
if configuration.getboolean('General', 'debugstdout'):
|
if configuration.getboolean('General', 'debugstdout'):
|
||||||
stream_handler.setLevel(logging.DEBUG)
|
stream_handler.setLevel(logging.DEBUG)
|
||||||
|
else:
|
||||||
|
logger.addHandler(file_handler)
|
||||||
|
|
||||||
# attach handlers
|
# attach handlers
|
||||||
logger.addHandler(stream_handler)
|
logger.addHandler(stream_handler)
|
||||||
logger.addHandler(file_handler)
|
|
||||||
|
|
||||||
idmap = configuration.get('General', 'idmap')
|
idmap = configuration.get('General', 'idmap')
|
||||||
if idmap:
|
if idmap:
|
||||||
|
|
Loading…
Reference in New Issue