diff options
author | Devon Hudson <devonhudson@librem.one> | 2023-07-21 13:08:28 -0600 |
---|---|---|
committer | Devon Hudson <devonhudson@librem.one> | 2023-07-21 13:08:28 -0600 |
commit | a48c7d33a555250f867370d56798b7a730931bb8 (patch) | |
tree | b13d67646fc82fc85ce1d2cd3020c4d703f3b63b /setup/mscs | |
parent | c809e9533595a86750e864bcbd9880eb96b9e76f (diff) |
Don't quit if unknown msc in config, log it and keep going
Diffstat (limited to 'setup/mscs')
-rw-r--r-- | setup/mscs/mscs.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setup/mscs/mscs.go b/setup/mscs/mscs.go index b967c1b0..7a942cf7 100644 --- a/setup/mscs/mscs.go +++ b/setup/mscs/mscs.go @@ -17,7 +17,6 @@ package mscs import ( "context" - "fmt" "github.com/matrix-org/dendrite/internal/caching" "github.com/matrix-org/dendrite/internal/httputil" @@ -26,6 +25,7 @@ import ( "github.com/matrix-org/dendrite/setup/config" "github.com/matrix-org/dendrite/setup/mscs/msc2836" "github.com/matrix-org/util" + "github.com/sirupsen/logrus" ) // Enable MSCs - returns an error on unknown MSCs @@ -46,7 +46,7 @@ func EnableMSC(cfg *config.Dendrite, cm *sqlutil.Connections, routers httputil.R case "msc2444": // enabled inside federationapi case "msc2753": // enabled inside clientapi default: - return fmt.Errorf("EnableMSC: unknown msc '%s'", msc) + logrus.Warnf("EnableMSC: unknown MSC '%s', this MSC is either not supported or is natively supported by Dendrite", msc) } return nil } |