From f33cd69b5ce06c6c6ddc93622e9d9ece1660b678 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 14 May 2020 09:27:04 +0200 Subject: [PATCH] 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. --- src/shared/condition.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shared/condition.c b/src/shared/condition.c index 45f36781a0..4784c7db7d 100644 --- a/src/shared/condition.c +++ b/src/shared/condition.c @@ -601,16 +601,16 @@ static int condition_test_needs_update(Condition *c, char **env) { r = parse_env_file(NULL, p, "TIMESTAMP_NSEC", ×tamp_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, ×tamp); 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; }