summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2015-07-08 14:13:19 +0200
committerTomas Babej <tbabej@redhat.com>2015-07-08 17:11:23 +0200
commite51bb1bc668bf3008c8cca1dcbb0ebda7fa5c703 (patch)
tree8ec4df57ed134f2ae92e533c03ec45fa281901ec
parent7c0e7f7e3ca3a971d4db64f80f02d4f79e5f5c4d (diff)
downloadfreeipa-e51bb1bc668bf3008c8cca1dcbb0ebda7fa5c703.tar.gz
freeipa-e51bb1bc668bf3008c8cca1dcbb0ebda7fa5c703.tar.xz
freeipa-e51bb1bc668bf3008c8cca1dcbb0ebda7fa5c703.zip
Fix logging in API
Setup log in API before first usage Reviewed-By: Tomas Babej <tbabej@redhat.com>
-rw-r--r--ipalib/plugable.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py
index 2ce7acfd6..45b346376 100644
--- a/ipalib/plugable.py
+++ b/ipalib/plugable.py
@@ -372,11 +372,11 @@ class API(ReadOnly):
Initialize environment variables and logging.
"""
self.__doing('bootstrap')
- self.env._bootstrap(**overrides)
- self.env._finalize_core(**dict(DEFAULT_CONFIG))
self.log_mgr = log_mgr
log = log_mgr.root_logger
self.log = log
+ self.env._bootstrap(**overrides)
+ self.env._finalize_core(**dict(DEFAULT_CONFIG))
# Add the argument parser
if not parser: