mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Explicitly close the removed handlers
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
4005843f42
commit
fc9f400f94
1 changed files with 1 additions and 0 deletions
|
@ -108,6 +108,7 @@ _pytest.logging._LiveLoggingStreamHandler = LiveLoggingStreamHandler
|
|||
# Reset logging root handlers
|
||||
for handler in logging.root.handlers[:]:
|
||||
logging.root.removeHandler(handler)
|
||||
handler.close()
|
||||
|
||||
|
||||
# Reset the root logger to its default level(because salt changed it)
|
||||
|
|
Loading…
Add table
Reference in a new issue