From ec64b412a87cb48295963195c8ad3cc6448191bd Mon Sep 17 00:00:00 2001 From: Christophe Henry Date: Thu, 18 Aug 2022 23:12:38 +0200 Subject: [PATCH] Document Matrix pushkey error + set log level to warnings for Matrix errors --- server/server_matrix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server_matrix.go b/server/server_matrix.go index 2113c5a..ebc2913 100644 --- a/server/server_matrix.go +++ b/server/server_matrix.go @@ -124,7 +124,7 @@ func newRequestFromMatrixJSON(r *http.Request, baseURL string, messageLimit int) } pushKey := m.Notification.Devices[0].PushKey // We ignore other devices for now, see discussion in #316 if !strings.HasPrefix(pushKey, baseURL+"/") { - return nil, &errMatrix{pushKey: pushKey, err: errHTTPBadRequestMatrixPushkeyBaseURLMismatch} + return nil, &errMatrix{pushKey: pushKey, err: wrapErrHTTP(errHTTPBadRequestMatrixPushkeyBaseURLMismatch, "; received pushKey: %s, configured base url: %s", pushKey, baseURL)} } newRequest, err := http.NewRequest(http.MethodPost, pushKey, io.NopCloser(bytes.NewReader(body.PeekedBytes))) if err != nil {