# See individual, module-level debug statements

**URL:** <https://forum.ansible.com/t/see-individual-module-level-debug-statements/30482>\
**Category:** Ansible Project\
**Created:** [June 3, 2019, 8:38pm UTC](https://forum.ansible.com/t/see-individual-module-level-debug-statements/30482 "2019-06-03T20:38:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julian\_Montez](https://avatars.discourse-cdn.com/v4/letter/j/c5a1d2/32.png) [@Julian\_Montez](https://forum.ansible.com/u/Julian_Montez)\
**Post date:** [June 3, 2019, 8:38pm UTC](https://forum.ansible.com/t/see-individual-module-level-debug-statements/30482/1 "2019-06-03T20:38:07Z")

</div>

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](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](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](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

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [June 3, 2019, 8:44pm UTC](https://forum.ansible.com/t/see-individual-module-level-debug-statements/30482/2 "2019-06-03T20:44:50Z")

</div>

I believe the problem is that asl as configured on macOS (/etc/asl.conf) ignores all messages with DEBUG or INFO.

See [https://stackoverflow.com/q/22004505](https://stackoverflow.com/q/22004505)

---

<div class="post-metadata">

**Author:** ![Julian\_Montez](https://avatars.discourse-cdn.com/v4/letter/j/c5a1d2/32.png) [@Julian\_Montez](https://forum.ansible.com/u/Julian_Montez)\
**Post date:** [June 3, 2019, 10:16pm UTC](https://forum.ansible.com/t/see-individual-module-level-debug-statements/30482/3 "2019-06-03T22:16:16Z")

</div>

Hm…that explains why it’s not working on macOS. Thanks for that link!

I’ve run the same environment variable exports on an Ubuntu machine as a test. The general debug output is there, but the module debug output isn’t there. I still can’t see the internals of what’s being performed during the module’s execution.

- J
