Hi,
after some searching I did not find anything appropriate: I just want to log some debug information in my on new module in libraries/cloud, so my first attempt was to use vv, but when I import it
from ansible.callbacks import vv, vvv
it’s always complaining about
`
Traceback (most recent call last):
File “/Users/m.joehren/.ansible_module_generated”, line 72, in
from ansible.callbacks import vv, vvv
File “/Users/m.joehren/matlockx/ansible/lib/ansible/callbacks.py”, line 18, in
import utils
File “/Users/m.joehren/matlockx/ansible/lib/ansible/utils/init.py”, line 29, in
from ansible.utils.display_functions import *
File “/Users/m.joehren/matlockx/ansible/lib/ansible/utils/display_functions.py”, line 22, in
from ansible.callbacks import display
ImportError: cannot import name display
`
Is it a python thing that i’m missing here (i’m more or less python beginner)?
Anyhow, how should debug logging in modules be done? And when I use vv, how can I pass that to the test-module command on the command line?
Thanks in advance,
Martin