From ab19c6670641441ff498eed4b0fd4e9ed01a1014 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Sat, 1 Dec 2018 18:14:58 +0800 Subject: [PATCH] Mention account where legacy user token is used. --- bridge/slack/slack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index acb13989..6274489a 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -76,7 +76,7 @@ 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.Warn("Non-bot token detected. It is STRONGLY recommended to use a proper bot-token instead.") + cfg.Log.Warnf("Non-bot token detected for %s. It is STRONGLY recommended to use a proper bot-token instead.", cfg.Account) 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") }