From 2db738e8996528502293b8cc6861efedcba22c9a Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Mon, 24 Nov 2008 10:09:30 -0700 Subject: Some changes to make reading dubugging output easier --- ipalib/plugable.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ipalib/plugable.py') 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. -- cgit