From: Lennart Poettering Date: Sat, 7 Feb 2026 22:12:30 +0000 (+0100) Subject: report: don't claim no reporting sockets were found, when it's no metrics that were... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7aebb22507cf6b2d825b7e3182c5ae1c647c823;p=thirdparty%2Fsystemd.git report: don't claim no reporting sockets were found, when it's no metrics that were found Let's add a proper message about missing sources, and call them "sources", i.e. take a more high-level view on things. --- diff --git a/src/report/report.c b/src/report/report.c index f62daa35b72..986ab18bf49 100644 --- a/src/report/report.c +++ b/src/report/report.c @@ -164,7 +164,7 @@ static int metrics_output_sorted(Context *context) { } if (context->n_metrics == 0) - log_info("No reporting sockets found."); + log_info("No metrics collected."); return 0; } @@ -213,7 +213,9 @@ static int metrics_query(void) { } } - if (!set_isempty(context.links)) { + if (set_isempty(context.links)) + log_info("No metrics sources found."); + else { r = sd_event_loop(context.event); if (r < 0) return log_error_errno(r, "Failed to run event loop: %m");