report: don't consider it an error if a backend replies io.systemd.Metrics.NoSuchMetric

If an error returns this it (currently) has no metric to report. Which
is entirely fine, treat it as such.
This commit is contained in:
Lennart Poettering
2026-06-19 05:00:06 +02:00
parent 9b3df70ae0
commit d086eb6d2e
+2
View File
@@ -232,6 +232,8 @@ static int on_query_reply(
log_warning("Varlink connection to '%s' disconnected prematurely, ignoring.", li->name);
else if (streq(error_id, SD_VARLINK_ERROR_TIMEOUT))
log_warning("Varlink connection to '%s' timed out, ignoring.", li->name);
else if (streq(error_id, "io.systemd.Metrics.NoSuchMetric"))
log_debug("Varlink connection to '%s' reported no more metrics, ignoring.", li->name);
else
log_warning("Varlink error from '%s', ignoring: %s", li->name, error_id);