From: Zbigniew Jędrzejewski-Szmek Date: Thu, 26 Mar 2020 16:33:43 +0000 (+0100) Subject: path: log at debug level when we can't query a variable X-Git-Tag: v246-rc1~685^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3420558512f880c46d14d23154582e3f9b3862b;p=thirdparty%2Fsystemd.git path: log at debug level when we can't query a variable --- diff --git a/src/path/path.c b/src/path/path.c index 20892fe1f21..5d6afb96f06 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; }