Error logging

Hi,

I think we need a way to get the error output of the module execution
on the remote system. It has bitten me twice already (no json on RHEL
5 by default and no "except .. as" support) and debugging it is
painful if you don't know where to look.

As far as I can see, there are several options:
- log remote stderr to stderr by default
- log remote stderr to stderr when a -D --debug flag is given
- log remote stderr to logfile by default
- log remote stderr to logfile if given in playbook
(any combination goes)

Currently, nothing is done with stderr. I prefer 2 and 4. Might try to
implement it when I find time.

Any opinions on this?

Greetings,

Jeroen

Yeah, I like 2 also… but it needs to be done with a Runner callback like on_stderr so we can do it differently between Runner and Playbook.

(This means the verbosity flag would need to be fed to the callbacks constructor)

This should be quite fine to do, stdout is JSON, std err could be anything.

Make it so!

–Michael