[Freeipa-devel] why doesn't ipapython.ipautil.run() log what it's running?

John Dennis jdennis at redhat.com
Tue Oct 13 17:59:16 UTC 2009


Is there a reason why the run command (ipapython.ipautil.run()) does not 
log what command it's running? It logs the stdout and stderr output of 
the command (but without indicating what the log output is, so a lot of 
time it just shows up as a blank line if there was no output). Shouldn't 
it do something like this:

logging.info("args=%s" % " ".join(args))
logging.info("stdout=%s" % stdout)
logging.info("stderr=%s" % stderr)

instead of:

logging.info(stdout)
logging.info(stderr)

Without knowing what was run and what it's arguments were the stdout and 
stderr messages are almost useless.

-- 
John Dennis <jdennis at redhat.com>

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/




More information about the Freeipa-devel mailing list