config: 'invalid key' is always an error, not a warning

This commit is contained in:
Daniel Eklöf 2020-03-12 10:19:21 +01:00
parent 65ff582358
commit 9fae38a4b2
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -258,7 +258,7 @@ parse_section_main(const char *key, const char *value, struct config *conf,
}
else {
LOG_WARN("%s:%u: invalid key: %s", path, lineno, key);
LOG_ERR("%s:%u: invalid key: %s", path, lineno, key);
return false;
}
@ -440,7 +440,7 @@ parse_section_csd(const char *key, const char *value, struct config *conf,
}
else {
LOG_WARN("%s:%u: invalid key: %s", path, lineno, key);
LOG_ERR("%s:%u: invalid key: %s", path, lineno, key);
return false;
}
@ -474,8 +474,7 @@ parse_section_key_bindings(const char *key, const char *value, struct config *co
return true;
}
LOG_WARN("%s:%u: invalid key: %s", path, lineno, key);
LOG_ERR("%s:%u: invalid key: %s", path, lineno, key);
return false;
}