mirror of
https://github.com/systemd/systemd.git
synced 2025-01-26 14:04:03 +03:00
logind: don't print warning when user@.service template is masked
User instance of systemd is optional feature and if user@.service template is masked then administrator most likely doesn't want --user instances of systemd for logged in users. We don't need to be verbose about it.
This commit is contained in:
parent
87dddbaf62
commit
03b6fa0c5b
@ -357,7 +357,8 @@ static void user_start_service(User *u) {
|
||||
|
||||
r = manager_start_unit(u->manager, u->service, &error, &u->service_job);
|
||||
if (r < 0)
|
||||
log_warning_errno(r, "Failed to start user service '%s', ignoring: %s", u->service, bus_error_message(&error, r));
|
||||
log_full_errno(sd_bus_error_has_name(&error, BUS_ERROR_UNIT_MASKED) ? LOG_DEBUG : LOG_WARNING, r,
|
||||
"Failed to start user service '%s', ignoring: %s", u->service, bus_error_message(&error, r));
|
||||
}
|
||||
|
||||
int user_start(User *u) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user