From: Zbigniew Jędrzejewski-Szmek Date: Thu, 5 Mar 2026 11:44:43 +0000 (+0100) Subject: report: downgrade message for org.varlink.service.MethodNotFound X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e11158af384ccc2e811cbc6d8f8ca413c057bad7;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/report/report.c b/src/report/report.c index f93b3076c6f..be7b89b8214 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);