condition: downgrade a few log messages to debug

Condition checks shouldn't log loudly, since they run all the time.
Let's make things debuggable, by keeping the messages in LOG_DEBUG in,
but don't make more noise than necessary.
This commit is contained in:
Lennart Poettering 2020-05-14 09:27:04 +02:00
parent df1f5dc1d9
commit f33cd69b5c
1 changed files with 3 additions and 3 deletions

View File

@ -601,16 +601,16 @@ static int condition_test_needs_update(Condition *c, char **env) {
r = parse_env_file(NULL, p, "TIMESTAMP_NSEC", &timestamp_str);
if (r < 0) {
log_error_errno(r, "Failed to parse timestamp file '%s', using mtime: %m", p);
log_debug_errno(r, "Failed to parse timestamp file '%s', using mtime: %m", p);
return true;
} else if (r == 0) {
log_debug("No data in timestamp file '%s', using mtime", p);
log_debug("No data in timestamp file '%s', using mtime.", p);
return true;
}
r = safe_atou64(timestamp_str, &timestamp);
if (r < 0) {
log_error_errno(r, "Failed to parse timestamp value '%s' in file '%s', using mtime: %m", timestamp_str, p);
log_debug_errno(r, "Failed to parse timestamp value '%s' in file '%s', using mtime: %m", timestamp_str, p);
return true;
}