--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/14124d7d-c1a9-4ff4-bbc7-e95b55dd2570%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I believe the problem is that asl as configured on macOS (/etc/asl.conf) ignores all messages with DEBUG or INFO.
On Mon, Jun 3, 2019 at 3:38 PM Julian Montez <julian...@gmail.com> wrote:
Hi,--I'm trying to view debug statements within individual modules. For example, `ec2_asg.py` (https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/amazon/ec2_asg.py) has debug statements describing when certain actions are performed. However, I'm finding it difficult to view these statements on my local machine.I've tried the following:
- Running the module with an `args.json` file, using the template described here: https://docs.ansible.com/ansible/2.5/dev_guide/developing_modules_general.html#local-direct-module-testing
- Running the module and playbook with ANSIBLE_LOG_PATH and ANSIBLE_DEBUG set properly.
- This has more output, but nothing related to the actions performed during the module's execution.
- Running the `./hacking/test-module` executable from Ansible's source.
- Inspecting macOS's `/var/log/system.log`. There was nothing logged here, though according to the AnsibleModule class, there should be output: https://github.com/ansible/ansible/blob/8cf6f56a0103c51e93de9e26ce1982ce4aeb7ba0/lib/ansible/module_utils/basic.py#L1845-L1850
Can anyone point me in the right direction for how we're supposed to retrieve module debug output? Thanks!- J
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 ansible...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/14124d7d-c1a9-4ff4-bbc7-e95b55dd2570%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.