From 365acc36eabef52bca9b2df148b31ba0613cb596 Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 5 Sep 2022 20:31:45 +0300 Subject: 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 --- bridge/slack/handlers.go | 2 +- 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 } -- cgit v1.2.3