diff options
author | Wim <wim@42.be> | 2016-09-20 00:15:30 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2016-09-20 00:15:30 +0200 |
commit | 98ff59c716d15945a1749afc2e9b492399294aac (patch) | |
tree | 5c76da69dc018ad787539346a459168f399c3edd | |
parent | 0e96e9f9be235e70d644c426dc85cccc8370e818 (diff) | |
download | matterbridge-msglm-98ff59c716d15945a1749afc2e9b492399294aac.tar.gz matterbridge-msglm-98ff59c716d15945a1749afc2e9b492399294aac.tar.bz2 matterbridge-msglm-98ff59c716d15945a1749afc2e9b492399294aac.zip |
Cleanup discord bridge debug/info messages
-rw-r--r-- | bridge/discord/discord.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go index b144392c..3547edae 100644 --- a/bridge/discord/discord.go +++ b/bridge/discord/discord.go @@ -34,7 +34,7 @@ func New(config config.Protocol, origin string, c chan config.Message) *bdiscord func (b *bdiscord) Connect() error { var err error - flog.Info("Trying " + b.protocol + " connection") + flog.Info("Connecting") b.c, err = discordgo.New(b.Config.Token) if err != nil { flog.Debugf("%#v", err) @@ -91,6 +91,7 @@ func (b *bdiscord) Origin() string { } func (b *bdiscord) Send(msg config.Message) error { + flog.Debugf("Receiving %#v", msg) channelID := b.getChannelID(msg.Channel) if channelID == "" { flog.Errorf("Could not find channelID for %v", msg.Channel) @@ -105,6 +106,7 @@ func (b *bdiscord) messageCreate(s *discordgo.Session, m *discordgo.MessageCreat if m.Author.Username == b.Nick { return } + flog.Debugf("Sending message from %s on %s to gateway", m.Author.Username, b.FullOrigin()) b.Remote <- config.Message{Username: m.Author.Username, Text: m.Content, Channel: b.getChannelName(m.ChannelID), Origin: b.origin, Protocol: b.protocol, FullOrigin: b.FullOrigin()} } |