mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-28 11:55:23 +03:00
sysctl: bump loglevel when attempting to write invalid values
This commit is contained in:
parent
ee80b4b297
commit
9bcfdd74fc
@ -51,7 +51,7 @@ static int apply_all(Hashmap *sysctl_options) {
|
||||
|
||||
k = sysctl_write(property, value);
|
||||
if (k < 0) {
|
||||
log_full_errno(k == -ENOENT ? LOG_DEBUG : LOG_WARNING, k,
|
||||
log_full_errno(k == -ENOENT ? LOG_INFO : LOG_WARNING, k,
|
||||
"Failed to write '%s' to '%s': %m", value, property);
|
||||
|
||||
if (r == 0 && k != -ENOENT)
|
||||
|
Loading…
Reference in New Issue
Block a user