mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-27 14:03:43 +03:00
path: log at debug level when we can't query a variable
This commit is contained in:
parent
f52b9131e5
commit
e342055851
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user