From e3420558512f880c46d14d23154582e3f9b3862b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 26 Mar 2020 17:33:43 +0100 Subject: path: log at debug level when we can't query a variable --- src/path/path.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/path/path.c') diff --git a/src/path/path.c b/src/path/path.c index 20892fe1f2..5d6afb96f0 100644 --- a/src/path/path.c +++ b/src/path/path.c @@ -94,11 +94,11 @@ static int list_homes(void) { int q; q = sd_path_lookup(i, arg_suffix, &p); - if (q == -ENXIO) - continue; if (q < 0) { - log_error_errno(r, "Failed to query %s: %m", path_table[i]); - r = q; + log_full_errno(q == -ENXIO ? LOG_DEBUG : LOG_ERR, + q, "Failed to query %s: %m", path_table[i]); + if (q != -ENXIO) + r = q; continue; } -- cgit v1.2.1