From 594d2155e3cbf06f307d076c95984906b53cb40a Mon Sep 17 00:00:00 2001 From: Wim Date: Wed, 28 Feb 2018 22:23:29 +0100 Subject: Improve debug messages --- bridge/matrix/matrix.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bridge/matrix') 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 } } -- cgit v1.2.3