Log M_FORBIDDEN room metadata failures as warnings #1

Open
skunky wants to merge 1 commit from roommeta-forbidden-warn into main
Owner

When the bridge is added to an existing Matrix room (e.g. adopted via !xmpp bridge), the bot does not necessarily have the power level required for com.beeper.room_features and similar metadata state events (eventauth: sender ... is not allowed to send event. 15 < 100).

This is expected and non-fatal — the capability update is simply skipped — so it is now logged at warn level instead of error, keeping ERR lines meaningful.

Seen in production logs of the XMPP bridge (portal on a foreign homeserver): every portal sync produced an ERR Failed to set room metadata line.

When the bridge is added to an **existing** Matrix room (e.g. adopted via `!xmpp bridge`), the bot does not necessarily have the power level required for `com.beeper.room_features` and similar metadata state events (`eventauth: sender ... is not allowed to send event. 15 < 100`). This is expected and non-fatal — the capability update is simply skipped — so it is now logged at **warn** level instead of error, keeping `ERR` lines meaningful. Seen in production logs of the XMPP bridge (portal on a foreign homeserver): every portal sync produced an `ERR Failed to set room metadata` line.
Log M_FORBIDDEN room metadata failures as warnings
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled
Go / Lint (latest) (pull_request) Has been cancelled
Go / Build (old, libolm) (pull_request) Has been cancelled
Go / Build (latest, libolm) (pull_request) Has been cancelled
Go / Build (old, goolm) (pull_request) Has been cancelled
Go / Build (latest, goolm) (pull_request) Has been cancelled
c9e5b213d5
When the bridge is added to an existing Matrix room (e.g. via !xmpp
bridge) it does not necessarily have the power level required for
com.beeper.room_features and similar metadata state events. That is
expected and non-fatal (the capability update is simply skipped), so
log it at warn level instead of error to avoid red herrings in logs.
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled
Go / Lint (latest) (pull_request) Has been cancelled
Go / Build (old, libolm) (pull_request) Has been cancelled
Go / Build (latest, libolm) (pull_request) Has been cancelled
Go / Build (old, goolm) (pull_request) Has been cancelled
Go / Build (latest, goolm) (pull_request) Has been cancelled
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'roommeta-forbidden-warn:roommeta-forbidden-warn'
git switch 'roommeta-forbidden-warn'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'roommeta-forbidden-warn'
git switch 'roommeta-forbidden-warn'
git rebase 'main'
git switch 'main'
git merge --ff-only 'roommeta-forbidden-warn'
git switch 'roommeta-forbidden-warn'
git rebase 'main'
git switch 'main'
git merge --no-ff 'roommeta-forbidden-warn'
git switch 'main'
git merge --squash 'roommeta-forbidden-warn'
git switch 'main'
git merge --ff-only 'roommeta-forbidden-warn'
git switch 'main'
git merge 'roommeta-forbidden-warn'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
xmpp-bridge/mautrix-go!1
No description provided.