I would like to disable logging of module invocation in syslog, so I wanted 
to submit a pull request. Than I saw that there are (were) already two pull 
requests which implemented this change, one of them was rejected, while the 
other one is still not merged. Because of this and because there are a few 
gray areas what is the best way to implement this, I would like to discuss 
it.

In the rejected pull request https://github.com/ansible/ansible/pull/3253 
which supports a configuration variable in ansible.cfg *syslog_facility *to 
be off', 'no', 'false', 'False, but Michael replied to this pull request:

yeah this isn't how I wanted it implemented actually, it should pass the 
> facility down as "None" and understand that None means to not log, that way 
> we have to do less replacements on the file.
>


In the second pull request https://github.com/ansible/ansible/pull/5552 a 
new configuration variable is added to the ansible.cfg called 
disable_invocation_logging which if set to True disables logging.


The first implementation looks more like what Michael wanted, since 
syslog_facility already exists, so if we set it to "None", it should stop 
logging to it. The problem with this is that we still have systemd logging, 
which isn't disabled like this, so what should we do with that? On the 
other hand the second solution disables logging both for syslog and 
journal. I would also like to mention that we should probably think about 
the possibility of logging into a file as a third option.

What do you think would be the best way to implement this? Should we allow 
to disable logging separately for syslog and for journal, by 
syslog_facility=None and disable_journal=True (or whatever), or one 
configuration would be better? 

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6fa0c491-2d5c-4318-b9ce-644c88a97c10%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to