summaryrefslogtreecommitdiffstats
path: root/ipalib/plugable.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-11-24 10:09:30 -0700
committerJason Gerard DeRose <jderose@redhat.com>2008-11-24 10:09:30 -0700
commit2db738e8996528502293b8cc6861efedcba22c9a (patch)
tree65a5f5e414c551e7e4103ba673c2b6f74980dfad /ipalib/plugable.py
parentc02770129db9b27a718dadbf438459c3404c8a5a (diff)
downloadfreeipa-2db738e8996528502293b8cc6861efedcba22c9a.zip
freeipa-2db738e8996528502293b8cc6861efedcba22c9a.tar.gz
freeipa-2db738e8996528502293b8cc6861efedcba22c9a.tar.xz
Some changes to make reading dubugging output easier
Diffstat (limited to 'ipalib/plugable.py')
-rw-r--r--ipalib/plugable.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py
index d65a83e..7dafd44 100644
--- a/ipalib/plugable.py
+++ b/ipalib/plugable.py
@@ -253,6 +253,11 @@ class Plugin(ReadOnly):
__proxy__ = True
__api = None
+ def __init__(self):
+ log = logging.getLogger('ipa')
+ for name in ('debug', 'info', 'warning', 'error', 'critical'):
+ setattr(self, name, getattr(log, name))
+
def __get_name(self):
"""
Convenience property to return the class name.