Skip to content

Commit

Permalink
udev-rules: update log messages about OWNER= or GROUP= settings on --…
Browse files Browse the repository at this point in the history
…resolve=names=never

This also set lower log level for the messages.

6e2efb6 introduces the log messages.
But udevd may be started with --resolve-names=never, and the behavior
is expected.

Fixes #11720.
  • Loading branch information
yuwata committed Feb 15, 2019
1 parent 2c633a8 commit 57f08d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/udev/udev-rules.c
Expand Up @@ -1384,7 +1384,7 @@ static void add_rule(UdevRules *rules, char *line,
} else if (rules->resolve_name_timing != RESOLVE_NAME_NEVER)
r = rule_add_key(&rule_tmp, TK_A_OWNER, op, value, NULL);
else {
LOG_RULE_ERROR("Invalid %s operation", key);
LOG_RULE_DEBUG("Resolving user name is disabled, ignoring %s=%s", key, value);
continue;
}
if (r < 0)
Expand All @@ -1408,7 +1408,7 @@ static void add_rule(UdevRules *rules, char *line,
} else if (rules->resolve_name_timing != RESOLVE_NAME_NEVER)
r = rule_add_key(&rule_tmp, TK_A_GROUP, op, value, NULL);
else {
LOG_RULE_ERROR("Invalid %s operation", key);
LOG_RULE_DEBUG("Resolving group name is disabled, ignoring %s=%s", key, value);
continue;
}
if (r < 0)
Expand Down

0 comments on commit 57f08d5

Please sign in to comment.