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.
This commit is contained in:
+4
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user