adjust appservice sending logging
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
eb5dcf08c6
commit
bd73103713
2 changed files with 23 additions and 25 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue