diff options
author | Wim <wim@42.be> | 2022-01-10 22:58:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-10 22:58:53 +0100 |
commit | 2bcad846c081cb487b22679586bfc402785a9d43 (patch) | |
tree | 9a15b30fdd95b55852883b51df882214883e3611 /bridge/mattermost | |
parent | 15ad0165fcd641fb0bff72757a133004b909e866 (diff) | |
download | matterbridge-msglm-2bcad846c081cb487b22679586bfc402785a9d43.tar.gz matterbridge-msglm-2bcad846c081cb487b22679586bfc402785a9d43.tar.bz2 matterbridge-msglm-2bcad846c081cb487b22679586bfc402785a9d43.zip |
Add more ignore debug messages (mattermost) (#1678)
Diffstat (limited to 'bridge/mattermost')
-rw-r--r-- | bridge/mattermost/helpers.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bridge/mattermost/helpers.go b/bridge/mattermost/helpers.go index f0128139..865b8722 100644 --- a/bridge/mattermost/helpers.go +++ b/bridge/mattermost/helpers.go @@ -329,13 +329,14 @@ func (b *Bmattermost) skipMessage6(message *matterclient6.Message) bool { // Ignore messages sent from matterbridge if message.Post.Props != nil { if _, ok := message.Post.Props["matterbridge_"+b.uuid].(bool); ok { - b.Log.Debugf("sent by matterbridge, ignoring") + b.Log.Debug("sent by matterbridge, ignoring") return true } } // Ignore messages sent from a user logged in as the bot if b.mc6.User.Username == message.Username { + b.Log.Debug("message from same user as bot, ignoring") return true } @@ -346,6 +347,7 @@ func (b *Bmattermost) skipMessage6(message *matterclient6.Message) bool { // ignore messages from other teams than ours if message.Raw.GetData()["team_id"].(string) != b.TeamID { + b.Log.Debug("message from other team, ignoring") return true } |