Module: check_mk
Branch: master
Commit: 4ee5c5326878a343ee472f1e3be8aeadfde2ec06
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4ee5c5326878a3…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jun 28 08:22:25 2017 +0200
Fixed access not not existant variable
Change-Id: Ie891ac808fd4031b4120dd0ab556ef615915fc21
---
lib/log.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/log.py b/lib/log.py
index a14a291..8e668b8 100644
--- a/lib/log.py
+++ b/lib/log.py
@@ -124,6 +124,7 @@ def set_verbosity(verbosity):
raise NotImplementedError()
+# TODO: Experiment. Not yet used.
class LogMixin(object):
"""Inherit from this class to provide logging support.
@@ -145,6 +146,6 @@ class LogMixin(object):
@classmethod
def cls_logger(cls):
if not cls._cls_logger:
- parent = self._parent_logger or logger
+ parent = cls._parent_logger or logger
cls._cls_logger = parent.getChild('.'.join([cls.__name__]))
return cls._cls_logger