Skip to content

Commit 75cf4c9

Browse files
committed
Update file logging example
1 parent 15fc22f commit 75cf4c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/logging_filehandler.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@
2828

2929
logger.info("Logger initialized!")
3030
logger.debug("You can even add debug statements to the log!")
31+
32+
# If you're done with the FileHandler, close it
33+
file_handler.close()

0 commit comments

Comments
 (0)