Skip to content

Commit 3dc9b0f

Browse files
committed
Close logging handler properly
1 parent 95f8ecc commit 3dc9b0f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

schimpy/batch_metrics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,7 @@ def init_logger():
806806

807807
def shutdown_logger():
808808
for handler in logging.root.handlers:
809+
handler.close()
809810
logging.root.removeHandler(handler)
810811

811812

0 commit comments

Comments
 (0)