diff options
author | Wim <wim@42.be> | 2018-02-28 22:23:29 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-02-28 22:23:29 +0100 |
commit | 594d2155e3cbf06f307d076c95984906b53cb40a (patch) | |
tree | ba5a8e62a1642e6489a0f663b08380d45d50e746 /bridge/gitter/gitter.go | |
parent | 20dbd713068347ba9a025e02fb0a101e07e6982c (diff) | |
download | matterbridge-msglm-594d2155e3cbf06f307d076c95984906b53cb40a.tar.gz matterbridge-msglm-594d2155e3cbf06f307d076c95984906b53cb40a.tar.bz2 matterbridge-msglm-594d2155e3cbf06f307d076c95984906b53cb40a.zip |
Improve debug messages
Diffstat (limited to 'bridge/gitter/gitter.go')
-rw-r--r-- | bridge/gitter/gitter.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bridge/gitter/gitter.go b/bridge/gitter/gitter.go index 0cd8e520..b7f69b1f 100644 --- a/bridge/gitter/gitter.go +++ b/bridge/gitter/gitter.go @@ -71,7 +71,7 @@ func (b *Bgitter) JoinChannel(channel config.ChannelInfo) error { case *gitter.MessageReceived: // ignore message sent from ourselves if ev.Message.From.ID != b.User.ID { - b.Log.Debugf("Sending message from %s on %s to gateway", ev.Message.From.Username, b.Account) + b.Log.Debugf("<= Sending message from %s on %s to gateway", ev.Message.From.Username, b.Account) rmsg := config.Message{Username: ev.Message.From.Username, Text: ev.Message.Text, Channel: room, Account: b.Account, Avatar: b.getAvatar(ev.Message.From.Username), UserID: ev.Message.From.ID, ID: ev.Message.ID} @@ -79,7 +79,7 @@ func (b *Bgitter) JoinChannel(channel config.ChannelInfo) error { rmsg.Event = config.EVENT_USER_ACTION rmsg.Text = strings.Replace(rmsg.Text, "@"+ev.Message.From.Username+" ", "", -1) } - b.Log.Debugf("Message is %#v", rmsg) + b.Log.Debugf("<= Message is %#v", rmsg) b.Remote <- rmsg } case *gitter.GitterConnectionClosed: @@ -91,7 +91,7 @@ func (b *Bgitter) JoinChannel(channel config.ChannelInfo) error { } func (b *Bgitter) Send(msg config.Message) (string, error) { - b.Log.Debugf("Receiving %#v", msg) + b.Log.Debugf("=> Receiving %#v", msg) roomID := b.getRoomID(msg.Channel) if roomID == "" { b.Log.Errorf("Could not find roomID for %v", msg.Channel) |