From 5dd15ef8e716c65accb6cd021095c0e19913d55f Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 23 Jan 2021 00:09:56 +0100 Subject: Add an even more debug option (discord) (#1368) Enable discordgo debugging with debuglevel=1 under the [discord.xxx] section, for even more debugging fun. --- bridge/discord/discord.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bridge/discord/discord.go') 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 -- cgit v1.2.3