adjust appservice sending logging
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user