diff options
author | Alexander <korelskiy@uteka.ru> | 2022-09-05 20:31:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-05 19:31:45 +0200 |
commit | 365acc36eabef52bca9b2df148b31ba0613cb596 (patch) | |
tree | 9f0db5c27c46be89e137e5bf328fccf383b664f9 | |
parent | 0482cd191dc5fe51d6b50fec9ebeb8777407e100 (diff) | |
download | matterbridge-msglm-365acc36eabef52bca9b2df148b31ba0613cb596.tar.gz matterbridge-msglm-365acc36eabef52bca9b2df148b31ba0613cb596.tar.bz2 matterbridge-msglm-365acc36eabef52bca9b2df148b31ba0613cb596.zip |
Fix error messages in telegram and slack bridges (#1862)
* Fix message html entities escaping when sending to Telegram
* Fix error messages in telegram and slack bridges
Co-authored-by: Wim <wim@42.be>
-rw-r--r-- | bridge/slack/handlers.go | 2 | ||||
-rw-r--r-- | bridge/telegram/handlers.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bridge/slack/handlers.go b/bridge/slack/handlers.go index 225931d4..24244427 100644 --- a/bridge/slack/handlers.go +++ b/bridge/slack/handlers.go @@ -80,7 +80,7 @@ func (b *Bslack) handleSlackClient(messages chan *config.Message) { case *slack.FileDeletedEvent: rmsg, err := b.handleFileDeletedEvent(ev) if err != nil { - b.Log.Errorf("%#v", err) + b.Log.Printf("%#v", err) continue } messages <- rmsg diff --git a/bridge/telegram/handlers.go b/bridge/telegram/handlers.go index 46bda480..ad41354e 100644 --- a/bridge/telegram/handlers.go +++ b/bridge/telegram/handlers.go @@ -176,7 +176,7 @@ func (b *Btelegram) handleRecv(updates <-chan tgbotapi.Update) { if update.Message == nil && update.ChannelPost == nil && update.EditedMessage == nil && update.EditedChannelPost == nil { - b.Log.Error("Getting nil messages, this shouldn't happen.") + b.Log.Info("Received event without messages, skipping.") continue } |