Message170635
logging.shutdown includes a try/except block to avoid emitting spurious IO errors while the interpreter is shutting down. This fails if a registered handler tries to do IO (such as calling flush()) in its release method.
It would be better if the flush-and-close block was written as:
try:
hr.acquire()
try:
hr.flush()
hr.close()
finally:
hr.release()
except (IOError, ValueError):
# Tolerate handlers that try to do IO in release() |
|
Date |
User |
Action |
Args |
2012-09-18 07:40:20 | ncoghlan | set | recipients:
+ ncoghlan |
2012-09-18 07:40:20 | ncoghlan | set | messageid: <1347954020.8.0.36541508073.issue15960@psf.upfronthosting.co.za> |
2012-09-18 07:40:20 | ncoghlan | link | issue15960 messages |
2012-09-18 07:40:19 | ncoghlan | create | |
|