diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-11-24 10:09:30 -0700 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-11-24 10:09:30 -0700 |
commit | 2db738e8996528502293b8cc6861efedcba22c9a (patch) | |
tree | 65a5f5e414c551e7e4103ba673c2b6f74980dfad /ipalib/plugable.py | |
parent | c02770129db9b27a718dadbf438459c3404c8a5a (diff) | |
download | freeipa-2db738e8996528502293b8cc6861efedcba22c9a.tar.gz freeipa-2db738e8996528502293b8cc6861efedcba22c9a.tar.xz freeipa-2db738e8996528502293b8cc6861efedcba22c9a.zip |
Some changes to make reading dubugging output easier
Diffstat (limited to 'ipalib/plugable.py')
-rw-r--r-- | ipalib/plugable.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py index d65a83e2c..7dafd4401 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. |