Added duplicate call to fileConfig() to ensure that it cleans up after itself correctly.
This commit is contained in:
parent
28e57618ad
commit
a09803329c
|
@ -480,6 +480,8 @@ def test4():
|
||||||
f.close()
|
f.close()
|
||||||
try:
|
try:
|
||||||
logging.config.fileConfig(fn)
|
logging.config.fileConfig(fn)
|
||||||
|
#call again to make sure cleanup is correct
|
||||||
|
logging.config.fileConfig(fn)
|
||||||
except:
|
except:
|
||||||
t = sys.exc_info()[0]
|
t = sys.exc_info()[0]
|
||||||
message(str(t))
|
message(str(t))
|
||||||
|
|
Loading…
Reference in New Issue