From a7aebb22507cf6b2d825b7e3182c5ae1c647c823 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 7 Feb 2026 23:12:30 +0100 Subject: [PATCH] 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. --- src/report/report.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/report/report.c b/src/report/report.c index f62daa35b7..986ab18bf4 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");