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/matrix/matrix.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/matrix/matrix.go')
-rw-r--r-- | bridge/matrix/matrix.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bridge/matrix/matrix.go b/bridge/matrix/matrix.go index e7f7159a..d6fd68e7 100644 --- a/bridge/matrix/matrix.go +++ b/bridge/matrix/matrix.go @@ -65,7 +65,7 @@ func (b *Bmatrix) JoinChannel(channel config.ChannelInfo) error { } func (b *Bmatrix) Send(msg config.Message) (string, error) { - b.Log.Debugf("Receiving %#v", msg) + b.Log.Debugf("=> Receiving %#v", msg) channel := b.getRoomID(msg.Channel) b.Log.Debugf("Channel %s maps to channel id %s", msg.Channel, channel) @@ -140,7 +140,7 @@ func (b *Bmatrix) handlematrix() error { } func (b *Bmatrix) handleEvent(ev *matrix.Event) { - b.Log.Debugf("Received: %#v", ev) + b.Log.Debugf("== Receiving event: %#v", ev) if ev.Sender != b.UserID { b.RLock() channel, ok := b.RoomMap[ev.RoomID] @@ -189,7 +189,7 @@ func (b *Bmatrix) handleEvent(ev *matrix.Event) { } } - b.Log.Debugf("Sending message from %s on %s to gateway", ev.Sender, b.Account) + b.Log.Debugf("<= Sending message from %s on %s to gateway", ev.Sender, b.Account) b.Remote <- rmsg } } |