summaryrefslogtreecommitdiffstats
path: root/bridge/mattermost
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/mattermost
parent20dbd713068347ba9a025e02fb0a101e07e6982c (diff)
downloadmatterbridge-msglm-594d2155e3cbf06f307d076c95984906b53cb40a.tar.gz
matterbridge-msglm-594d2155e3cbf06f307d076c95984906b53cb40a.tar.bz2
matterbridge-msglm-594d2155e3cbf06f307d076c95984906b53cb40a.zip
Improve debug messages
Diffstat (limited to 'bridge/mattermost')
-rw-r--r--bridge/mattermost/mattermost.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go
index af52270a..dffb421d 100644
--- a/bridge/mattermost/mattermost.go
+++ b/bridge/mattermost/mattermost.go
@@ -115,7 +115,7 @@ func (b *Bmattermost) JoinChannel(channel config.ChannelInfo) error {
}
func (b *Bmattermost) Send(msg config.Message) (string, error) {
- b.Log.Debugf("Receiving %#v", msg)
+ b.Log.Debugf("=> Receiving %#v", msg)
// Make a action /me of the message
if msg.Event == config.EVENT_USER_ACTION {
@@ -185,8 +185,8 @@ func (b *Bmattermost) handleMatter() {
if ok {
message.Event = config.EVENT_USER_ACTION
}
- b.Log.Debugf("Sending message from %s on %s to gateway", message.Username, b.Account)
- b.Log.Debugf("Message is %#v", message)
+ b.Log.Debugf("<= Sending message from %s on %s to gateway", message.Username, b.Account)
+ b.Log.Debugf("<= Message is %#v", message)
b.Remote <- *message
}
}
@@ -205,7 +205,7 @@ func (b *Bmattermost) handleMatterClient(messages chan *config.Message) {
b.handleDownloadAvatar(message.UserID, message.Channel)
}
- b.Log.Debugf("Receiving from matterclient %#v", message)
+ b.Log.Debugf("== Receiving event %#v", message)
rmsg := &config.Message{Username: message.Username, UserID: message.UserID, Channel: message.Channel, Text: message.Text, ID: message.Post.Id, Extra: make(map[string][]interface{})}