summaryrefslogtreecommitdiffstats
path: root/bridge/rocketchat/rocketchat.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-02-28 22:23:29 +0100
committerWim <wim@42.be>2018-02-28 22:23:29 +0100
commit594d2155e3cbf06f307d076c95984906b53cb40a (patch)
treeba5a8e62a1642e6489a0f663b08380d45d50e746 /bridge/rocketchat/rocketchat.go
parent20dbd713068347ba9a025e02fb0a101e07e6982c (diff)
downloadmatterbridge-msglm-594d2155e3cbf06f307d076c95984906b53cb40a.tar.gz
matterbridge-msglm-594d2155e3cbf06f307d076c95984906b53cb40a.tar.bz2
matterbridge-msglm-594d2155e3cbf06f307d076c95984906b53cb40a.zip
Improve debug messages
Diffstat (limited to 'bridge/rocketchat/rocketchat.go')
-rw-r--r--bridge/rocketchat/rocketchat.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bridge/rocketchat/rocketchat.go b/bridge/rocketchat/rocketchat.go
index 8f025d2f..fa6bdd5b 100644
--- a/bridge/rocketchat/rocketchat.go
+++ b/bridge/rocketchat/rocketchat.go
@@ -50,7 +50,7 @@ func (b *Brocketchat) Send(msg config.Message) (string, error) {
if msg.Event == config.EVENT_MSG_DELETE {
return "", nil
}
- b.Log.Debugf("Receiving %#v", msg)
+ b.Log.Debugf("=> Receiving %#v", msg)
if msg.Extra != nil {
for _, rmsg := range helper.HandleExtra(&msg, b.General) {
matterMessage := matterhook.OMessage{IconURL: b.Config.IconURL, Channel: rmsg.Channel, UserName: rmsg.Username,
@@ -88,7 +88,7 @@ func (b *Brocketchat) handleRocketHook() {
if message.UserName == b.Config.Nick {
continue
}
- b.Log.Debugf("Sending message from %s on %s to gateway", message.UserName, b.Account)
+ b.Log.Debugf("<= Sending message from %s on %s to gateway", message.UserName, b.Account)
b.Remote <- config.Message{Text: message.Text, Username: message.UserName, Channel: message.ChannelName, Account: b.Account, UserID: message.UserID}
}
}