matrix-js-sdk icon indicating copy to clipboard operation
matrix-js-sdk copied to clipboard

"Adding default global override for .org.matrix.msc3786.rule.room.server_acl" logged every time I start sdk client

Open BurnyBoi opened this issue 3 years ago • 3 comments

Describe the bug Every time I start a matrix-js-sdk client, I see the line "Adding default global override for .org.matrix.msc3786.rule.room.server_acl" is logged multiple times.

To Reproduce I am running the following code on matrix-js-sdk 19.3.0:

const sdk = require("matrix-js-sdk");
const matrixcs = require("matrix-js-sdk/lib/matrix");
const request = require('request');
matrixcs.request(request);

const log = require('loglevel');
const { logger} = require('matrix-js-sdk/lib/logger');
logger.setLevel(log.levels.INFO, false);

var myUserId = "@test:matrix.example.com";
var myAccessToken = "syt_token";
var matrixClient = sdk.createClient({
    baseUrl: "https://matrix.example.com",
    accessToken: myAccessToken,
    userId: myUserId
});

matrixClient.startClient({initialSyncLimit: 0});

Expected behavior Should start up quietly without this output. It didn't used to log this message on an older version of matrix-js-sdk.

Actual Behavior

$ node ./test.js
Adding default global override for .org.matrix.msc3786.rule.room.server_acl
Adding default global override for .org.matrix.msc3786.rule.room.server_acl

Desktop (please complete the following information):

  • OS: Arch Linux
  • Browser Firefox
  • Version 103

BurnyBoi avatar Aug 23 '22 21:08 BurnyBoi

Update your Matrix server to one which supports MSC3786 and then the log line will go away.

t3chguy avatar Aug 24 '22 08:08 t3chguy

I am running docker.io/matrixdotorg/synapse:latest now and am getting this message as well:

 DEBUG  FetchHttpApi: <-- GET http://192.168.178.166:8008/_matrix/client/v3/sync?filter=xxx&timeout=xxx&since=xxx [383ms 200]
 DEBUG  FetchHttpApi: <-- GET http://192.168.178.166:8008/_matrix/client/v3/sync?filter=xxx&timeout=xxx&since=xxx [382ms 200]
 DEBUG  FetchHttpApi: <-- GET http://192.168.178.166:8008/_matrix/client/v3/sync?filter=xxx&timeout=xxx&since=xxx [375ms 200]
 DEBUG  FetchHttpApi: <-- GET http://192.168.178.166:8008/_matrix/client/v3/sync?filter=xxx&timeout=xxx&since=xxx [381ms 200]
 WARN  Adding default global override push rule .org.matrix.msc3786.rule.room.server_acl
 WARN  Adding default global underride push rule .org.matrix.msc3914.rule.room.call

theobouwman avatar Sep 27 '24 11:09 theobouwman

Update your Matrix server to one which supports MSC3786 and then the log line will go away.

This doesn't sound right. I see this line (along with Adding default global underride push rule .org.matrix.msc3914.rule.room.call) every time I start Element Web.

richvdh avatar Sep 30 '24 14:09 richvdh