mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 00:51:24 +03:00
udev: also update log level for LOG_REALM_SYSTEMD
Now, not a few udevd debug logs come from sd-device or sd-hwdb. Only setting LOG_REALM_UDEV may not sufficient to debug. We have already similar code in main() and udevadm.
This commit is contained in:
parent
47c8fcbeb7
commit
c809f33719
@ -1027,7 +1027,8 @@ static int on_ctrl_msg(sd_event_source *s, int fd, uint32_t revents, void *userd
|
||||
i = udev_ctrl_get_set_log_level(ctrl_msg);
|
||||
if (i >= 0) {
|
||||
log_debug("Received udev control message (SET_LOG_LEVEL), setting log_priority=%i", i);
|
||||
log_set_max_level(i);
|
||||
log_set_max_level_realm(LOG_REALM_UDEV, i);
|
||||
log_set_max_level_realm(LOG_REALM_SYSTEMD, i);
|
||||
manager_kill_workers(manager);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user