From 29706fb13ba99b4309c2004668e952d997f25d5f Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 11 Feb 2011 17:24:20 -0500 Subject: 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 --- ipapython/ipautil.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ipapython') diff --git a/ipapython/ipautil.py b/ipapython/ipautil.py index 7a91dcba0..85db920e0 100644 --- a/ipapython/ipautil.py +++ b/ipapython/ipautil.py @@ -145,10 +145,10 @@ def run(args, stdin=None, raiseonerr=True, args = args.replace(quoted, 'XXXXXXXX') stdout = stdout.replace(quoted, 'XXXXXXXX') stderr = stderr.replace(quoted, 'XXXXXXXX') - logging.info('args=%s' % args) + logging.debug('args=%s' % args) if capture_output: - logging.info('stdout=%s' % stdout) - logging.info('stderr=%s' % stderr) + logging.debug('stdout=%s' % stdout) + logging.debug('stderr=%s' % stderr) if p.returncode != 0 and raiseonerr: raise CalledProcessError(p.returncode, args) -- cgit