Skip to content

Commit

Permalink
fixup: close log handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
Sieboldianus committed Aug 30, 2019
1 parent c75d115 commit 78756c2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lbsntransform/lbsntransform_.py
Expand Up @@ -152,10 +152,7 @@ def finalize_output(self):
def close_log(self):
""""Closes and renames log file for archive
"""
handlers = self.log.handlers[:]
for handler in handlers:
handler.close()
self.log.removeHandler(handler)
logging.shutdown()
# rename log file for archive purposes
today = HF.get_str_formatted_today()
numb = 0
Expand Down

0 comments on commit 78756c2

Please sign in to comment.