See individual, module-level debug statements

12 views
Skip to first unread message

Julian Montez

unread,
Jun 3, 2019, 4:38:08 PM6/3/19
to Ansible Project
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:
Can anyone point me in the right direction for how we're supposed to retrieve module debug output? Thanks!

- J

Matt Martz

unread,
Jun 3, 2019, 4:45:36 PM6/3/19
to ansible...@googlegroups.com
I believe the problem is that asl as configured on macOS (/etc/asl.conf) ignores all messages with DEBUG or INFO.


--
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.


--
Matt Martz
@sivel
sivel.net

Julian Montez

unread,
Jun 3, 2019, 6:16:17 PM6/3/19
to Ansible Project
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


On Monday, June 3, 2019 at 4:45:36 PM UTC-4, Matt Martz wrote:
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:
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.
Reply all
Reply to author
Forward
0 new messages