Description of problem:
debug in udev do not work with "udevadm control --log-priority=debug" command
Version-Release number of selected component (if applicable):
everytime when udev is set in debug mode
Steps to Reproduce:
1. udevadm control --log-priority=debug
2. udevadm control --reload
3. cat /var/log/messages
udev do not log in debug mode
udev should log in /var/log/messages with log priority = debug
udevadm control --log-priority=debug actually enables debug mode. Try running udevadm trigger afterward and check the system log. You will see a ton of debug output from udev. Also, you will see a message "udevd message (RELOAD) received" in journal which is logged at debug level.
It is just that --reload doesn't really do what you'd expect. Udev reloads configuration lazily. It kills all worker processes and drops the config loaded from rules in the past, however, it doesn't reload all the rules immediately. It does that when next uevent is received in the future.
Btw, I was checking in journal to rule out the possibility of misconfigured rsyslog.