summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-12-02 23:09:21 +0100
committerWim <wim@42.be>2018-12-04 10:21:38 +0100
commitc78bd24c619a0f7247c050b2a3e0d8a258876876 (patch)
tree5c01d9d63cdb5c88786f88a28a016a0a4e52af07
parentd2cfd235efc7fb80bf769606e809569108c968e7 (diff)
downloadmatterbridge-msglm-c78bd24c619a0f7247c050b2a3e0d8a258876876.tar.gz
matterbridge-msglm-c78bd24c619a0f7247c050b2a3e0d8a258876876.tar.bz2
matterbridge-msglm-c78bd24c619a0f7247c050b2a3e0d8a258876876.zip
Make slack-legacy change less restrictive (#626)
-rw-r--r--bridge/slack/slack.go11
1 files changed, 3 insertions, 8 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go
index d054ae81..cb35aa5c 100644
--- a/bridge/slack/slack.go
+++ b/bridge/slack/slack.go
@@ -77,14 +77,9 @@ func New(cfg *bridge.Config) bridge.Bridger {
// Print a deprecation warning for legacy non-bot tokens (#527).
token := cfg.GetString(tokenConfig)
if token != "" && !strings.HasPrefix(token, "xoxb") {
- cfg.Log.Error("Non-bot token detected. It is STRONGLY recommended to use a proper bot-token instead.")
- cfg.Log.Error("Legacy tokens may be deprecated by Slack at short notice. See the Matterbridge GitHub wiki for a migration guide.")
- cfg.Log.Error("See https://github.com/42wim/matterbridge/wiki/Slack-bot-setup")
- cfg.Log.Error("")
- cfg.Log.Error("To continue using a legacy token please move your configuration to a \"slack-legacy\" bridge instead.")
- cfg.Log.Error("See https://github.com/42wim/matterbridge/wiki/Section-Slack-(basic)#legacy-configuration)")
- cfg.Log.Error("Delaying start of bridge by 30 seconds. Future Matterbridge release will fail here unless you use a \"slack-legacy\" bridge.")
- time.Sleep(30 * time.Second)
+ cfg.Log.Warn("Non-bot token detected. It is STRONGLY recommended to use a proper bot-token instead.")
+ cfg.Log.Warn("Legacy tokens may be deprecated by Slack at short notice. See the Matterbridge GitHub wiki for a migration guide.")
+ cfg.Log.Warn("See https://github.com/42wim/matterbridge/wiki/Slack-bot-setup")
return NewLegacy(cfg)
}
return newBridge(cfg)