summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>2011-06-09 23:41:05 +0000
committerlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>2011-06-09 23:41:05 +0000
commit9b38e657770f86d2ca41d6e1309465a3b94f083a (patch)
treeefd39a0879f08f7e3aedb0093810ac5651242676
parente0982fd3b8186962b23382ac402894456ad1c500 (diff)
Make sure logging handlers are closed when removed
Make sure handlers are closed. Signed-off-by: Jongki Suwandi <jsuwandi@google.com> git-svn-id: svn://test.kernel.org/autotest/trunk@5419 592f7852-d20e-0410-864c-8624ca9c26a4
-rw-r--r--client/common_lib/logging_config.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/common_lib/logging_config.py b/client/common_lib/logging_config.py
index 9114d7a5..587296b7 100644
--- a/client/common_lib/logging_config.py
+++ b/client/common_lib/logging_config.py
@@ -95,6 +95,7 @@ class LoggingConfig(object):
def _clear_all_handlers(self):
for handler in list(self.logger.handlers):
self.logger.removeHandler(handler)
+ handler.close()
def configure_logging(self, use_console=True, verbose=False):