adjust appservice sending logging

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-04-24 01:00:19 -04:00 committed by June
parent eb5dcf08c6
commit bd73103713
2 changed files with 23 additions and 25 deletions

View file

@ -50,8 +50,12 @@ impl Service {
{
let dest = dest.replace(services().globals.notification_push_path(), "");
trace!("Push gateway destination: {dest}");
const VERSIONS: [MatrixVersion; 1] = [MatrixVersion::V1_0];
let http_request = request
.try_into_http_request::<BytesMut>(&dest, SendAccessToken::IfRequired(""), &[MatrixVersion::V1_0])
.try_into_http_request::<BytesMut>(&dest, SendAccessToken::IfRequired(""), &VERSIONS)
.map_err(|e| {
warn!("Failed to find destination {dest} for push gateway: {e}");
Error::BadServerResponse("Invalid push gateway destination")