diff options
Diffstat (limited to 'ipalib/plugable.py')
-rw-r--r-- | ipalib/plugable.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py index 64a9d8354..08a978ed1 100644 --- a/ipalib/plugable.py +++ b/ipalib/plugable.py @@ -793,7 +793,7 @@ class API(DictProxy): stderr.setLevel(logging.INFO) else: stderr.setLevel(logging.WARNING) - stderr.setFormatter(logging.Formatter(format)) + stderr.setFormatter(util.LogFormatter(format)) log.addHandler(stderr) # Add file handler: @@ -807,7 +807,7 @@ class API(DictProxy): log.warn('Could not create log_dir %r', log_dir) return handler = logging.FileHandler(self.env.log) - handler.setFormatter(logging.Formatter(self.env.log_format_file)) + handler.setFormatter(util.LogFormatter(self.env.log_format_file)) if self.env.debug: handler.setLevel(logging.DEBUG) else: |