summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-09-19 21:41:35 +0200
committerWim <wim@42.be>2017-09-19 21:41:35 +0200
commitc088e45d85828966d333211b85f1a250753a9979 (patch)
tree1043f420dccc34b9027c22da3e7dea8ae71b5537
parentd59c51a94b624ac6933cdbf1468211eac8546632 (diff)
downloadmatterbridge-msglm-c088e45d85828966d333211b85f1a250753a9979.tar.gz
matterbridge-msglm-c088e45d85828966d333211b85f1a250753a9979.tar.bz2
matterbridge-msglm-c088e45d85828966d333211b85f1a250753a9979.zip
Add more debug info (telegram)
-rw-r--r--bridge/telegram/telegram.go4
1 files changed, 3 insertions, 1 deletions
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
}
}
}