tp-libvirt
tp-libvirt copied to clipboard
Root logger is not avilible to avocado tests after the 92.0 LTS
In b2459dd the avocado stopped using the logs from root logger. Every avocado log are under avocado namespace now. This change was already accepted in avocado-vt. With those changes, every avocado-vt test has to use avocado namespace for logging, otherwise the logs will be lost, because the logs to root logger won't be used by avocado output. This is also part of Avocado 92.0 LTS version. As a solution, might be approach from avocado-vt adbfa56
I'm updating my script, but @richtja do I understand this correctly, do we now have to add an additional line of boilerplate code to each and every test script - I counted 539 test scripts today only in this libvirt provider - to make sure the logs are not lost?
Hi @smitterl If those scripts are using the root logger, unfortunately yes the change is necessary, because now the avocado only captures messages from the Avocado namespace context.
$ grep -Rl "logging\."|grep ".py"|wc -l
465
The following is our latest status(update here to inform anyone interested in this issue): updated the existing files in tp-libvirt/libvirt: https://github.com/autotest/tp-libvirt/pull/3994 updated the existing files in tp-libvirt/provider: https://github.com/autotest/tp-libvirt/pull/3995 updated v2v files: https://github.com/autotest/tp-libvirt/pull/3983