mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add default success/failure output logging.
Request logging on the server only happened if you added verbose=True or debug=True to the IPA config file. We should log the basics at least: who, what, result. Move a lot of entries from info to debug logging as well. Related to ticket 873
This commit is contained in:
@@ -409,10 +409,14 @@ class API(DictProxy):
|
||||
stderr = logging.StreamHandler()
|
||||
if self.env.debug:
|
||||
stderr.setLevel(logging.DEBUG)
|
||||
elif self.env.verbose > 0:
|
||||
stderr.setLevel(logging.INFO)
|
||||
else:
|
||||
stderr.setLevel(logging.WARNING)
|
||||
if self.env.context == 'cli':
|
||||
if self.env.verbose > 0:
|
||||
stderr.setLevel(logging.INFO)
|
||||
else:
|
||||
stderr.setLevel(logging.WARNING)
|
||||
else:
|
||||
stderr.setLevel(logging.INFO)
|
||||
stderr.setFormatter(util.LogFormatter(FORMAT_STDERR))
|
||||
log.addHandler(stderr)
|
||||
|
||||
@@ -549,7 +553,7 @@ class API(DictProxy):
|
||||
try:
|
||||
__import__(fullname)
|
||||
except errors.SkipPluginModule, e:
|
||||
self.log.info(
|
||||
self.log.debug(
|
||||
'skipping plugin module %s: %s', fullname, e.reason
|
||||
)
|
||||
except StandardError, e:
|
||||
|
||||
Reference in New Issue
Block a user