diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-10-28 01:39:02 -0600 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-10-28 01:39:02 -0600 |
commit | 316bd855d5720f4babfb79d20c391de3f8958a60 (patch) | |
tree | 6a26cd36959390fabf00fe1bba9963e2d8f87c36 /ipalib/plugable.py | |
parent | 2307d4ddd0409f00511c4d83ad7dab5e9d6d96df (diff) | |
download | freeipa-316bd855d5720f4babfb79d20c391de3f8958a60.tar.gz freeipa-316bd855d5720f4babfb79d20c391de3f8958a60.tar.xz freeipa-316bd855d5720f4babfb79d20c391de3f8958a60.zip |
Added util.configure_logging() function; API.bootstrap() now calls util.configure_logging()
Diffstat (limited to 'ipalib/plugable.py')
-rw-r--r-- | ipalib/plugable.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py index 8d689f7de..dd74dc08e 100644 --- a/ipalib/plugable.py +++ b/ipalib/plugable.py @@ -738,6 +738,13 @@ class API(DictProxy): self.__doing('bootstrap') self.env._bootstrap(**overrides) self.env._finalize_core(**dict(constants.DEFAULT_CONFIG)) + if self.env.mode == 'unit_test': + return + logger = util.configure_logging( + self.env.log, + self.env.verbose, + ) + object.__setattr__(self, 'log', 'logger') def load_plugins(self): """ |