From c088e45d85828966d333211b85f1a250753a9979 Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 19 Sep 2017 21:41:35 +0200 Subject: Add more debug info (telegram) --- bridge/telegram/telegram.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go index 937dfe9c..d6acf49c 100644 --- a/bridge/telegram/telegram.go +++ b/bridge/telegram/telegram.go @@ -162,7 +162,9 @@ func (b *Btelegram) handleRecv(updates <-chan tgbotapi.Update) { } if text != "" { flog.Debugf("Sending message from %s on %s to gateway", username, b.Account) - b.Remote <- config.Message{Username: username, Text: text, Channel: channel, Account: b.Account, UserID: strconv.Itoa(message.From.ID), ID: strconv.Itoa(message.MessageID)} + msg := config.Message{Username: username, Text: text, Channel: channel, Account: b.Account, UserID: strconv.Itoa(message.From.ID), ID: strconv.Itoa(message.MessageID)} + flog.Debugf("Message is %#v", msg) + b.Remote <- msg } } } -- cgit v1.2.3