sysctl: bump loglevel when attempting to write invalid values
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user