summaryrefslogtreecommitdiffstats
path: root/libs/globals/logger.py
diff options
context:
space:
mode:
authorShwetha-H-Panduranga <shwetha@gluster.com>2011-12-20 17:47:40 +0530
committerShwetha-H-Panduranga <shwetha@gluster.com>2011-12-20 17:47:40 +0530
commit7725b1190314990bb5032d6f6212f728209e8634 (patch)
treeddf12dbd4e66c09dd7b9d4aa483e9b8d15136e3b /libs/globals/logger.py
parent19065fb122214a065ef42e8e27f3848149357fcd (diff)
log variable doesn't exists. The variable we should be referring is 'self._handlers' not 'log'.
Diffstat (limited to 'libs/globals/logger.py')
-rw-r--r--libs/globals/logger.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/globals/logger.py b/libs/globals/logger.py
index 1e7b4c0..68ce53b 100644
--- a/libs/globals/logger.py
+++ b/libs/globals/logger.py
@@ -118,7 +118,7 @@ class Log(logging.Logger):
logname: Name of the Logger (summarylog/ detaillog/ stdoutlog)
"""
if self._handlers.has_key(logname):
- log_handler = log.pop(logname)
+ log_handler = self._handlers.pop(logname)
self.removeHandler(log_handler)
return 0