diff options
author | Wim <wim@42.be> | 2021-01-23 00:09:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-23 00:09:56 +0100 |
commit | 5dd15ef8e716c65accb6cd021095c0e19913d55f (patch) | |
tree | 64acc3c3069d32ca8bcbd142d4bc9d3d144e4f1f | |
parent | 4ac636670684f0b070455585b6b9c94973ccba43 (diff) | |
download | matterbridge-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.
-rw-r--r-- | bridge/discord/discord.go | 5 |
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 |