From e11158af384ccc2e811cbc6d8f8ca413c057bad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 5 Mar 2026 12:44:43 +0100 Subject: [PATCH] report: downgrade message for org.varlink.service.MethodNotFound We now have three kinds of endpoints under /run/systemd/report/: those that implement facts, those that implement metrics, and those that implement both. Let's downgrade the message to avoid pointless warnings. --- src/report/report.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/report/report.c b/src/report/report.c index f93b3076c6..be7b89b821 100644 --- a/src/report/report.c +++ b/src/report/report.c @@ -226,7 +226,10 @@ static int metrics_on_query_reply( Context *context = ASSERT_PTR(li->context); if (error_id) { - if (streq(error_id, SD_VARLINK_ERROR_DISCONNECTED)) + if (STR_IN_SET(error_id, SD_VARLINK_ERROR_METHOD_NOT_FOUND, + SD_VARLINK_ERROR_METHOD_NOT_IMPLEMENTED)) + log_debug("Ignoring Varlink endpoint '%s': %s", li->name, error_id); + else if (streq(error_id, SD_VARLINK_ERROR_DISCONNECTED)) 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);