]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
report: don't consider it an error if a backend replies io.systemd.Metrics.NoSuchMetric
authorLennart Poettering <lennart@amutable.com>
Mon, 15 Jun 2026 20:43:23 +0000 (22:43 +0200)
committerLennart Poettering <lennart@amutable.com>
Fri, 19 Jun 2026 03:00:06 +0000 (05:00 +0200)
If an error returns this it (currently) has no metric to report. Which
is entirely fine, treat it as such.

src/report/report.c

index a4d7a9ea56daa18b7024fb4eb3e2b8711bd5477c..9c951f983231094d9afa6cefc72a49df2807a1fc 100644 (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);