summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorWim <wim@42.be>2021-01-23 00:09:56 +0100
committerGitHub <noreply@github.com>2021-01-23 00:09:56 +0100
commit5dd15ef8e716c65accb6cd021095c0e19913d55f (patch)
tree64acc3c3069d32ca8bcbd142d4bc9d3d144e4f1f /bridge
parent4ac636670684f0b070455585b6b9c94973ccba43 (diff)
downloadmatterbridge-msglm-5dd15ef8e716c65accb6cd021095c0e19913d55f.tar.gz
matterbridge-msglm-5dd15ef8e716c65accb6cd021095c0e19913d55f.tar.bz2
matterbridge-msglm-5dd15ef8e716c65accb6cd021095c0e19913d55f.zip
Add an even more debug option (discord) (#1368)
Enable discordgo debugging with debuglevel=1 under the [discord.xxx] section, for even more debugging fun.
Diffstat (limited to 'bridge')
-rw-r--r--bridge/discord/discord.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go
index 184dde85..5f28a3bd 100644
--- a/bridge/discord/discord.go
+++ b/bridge/discord/discord.go
@@ -148,6 +148,11 @@ func (b *Bdiscord) Connect() error {
return fmt.Errorf("use of removed WebhookURL setting")
}
+ if b.GetInt("debuglevel") > 0 {
+ b.Log.Debug("enabling even more discord debug")
+ b.c.Debug = true
+ }
+
// Initialise webhook management
b.transmitter = transmitter.New(b.c, b.guildID, "matterbridge", b.useAutoWebhooks)
b.transmitter.Log = b.Log