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)
|
||||
if configuration.getboolean('General', 'debugstdout'):
|
||||
stream_handler.setLevel(logging.DEBUG)
|
||||
else:
|
||||
logger.addHandler(file_handler)
|
||||
|
||||
# attach handlers
|
||||
logger.addHandler(stream_handler)
|
||||
logger.addHandler(file_handler)
|
||||
|
||||
idmap = configuration.get('General', 'idmap')
|
||||
if idmap:
|
||||
|
|
Loading…
Reference in New Issue