diff options
author | David Hill <dhill@mindcry.org> | 2018-11-07 14:36:50 -0500 |
---|---|---|
committer | Wim <wim@42.be> | 2018-11-07 20:36:50 +0100 |
commit | 0e2522279e8671a345c1be6b8b07c0f1a505e23e (patch) | |
tree | 968ac4b1acd0352ae9962d6f71bfd7d9c668596f /matterclient | |
parent | 141a42a75b47b0a05f5b360ff5711819d3727a75 (diff) | |
download | matterbridge-msglm-0e2522279e8671a345c1be6b8b07c0f1a505e23e.tar.gz matterbridge-msglm-0e2522279e8671a345c1be6b8b07c0f1a505e23e.tar.bz2 matterbridge-msglm-0e2522279e8671a345c1be6b8b07c0f1a505e23e.zip |
Clean up various stuff (#508)
* various cleanups
Diffstat (limited to 'matterclient')
-rw-r--r-- | matterclient/matterclient.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go index f476be06..ae7cd94b 100644 --- a/matterclient/matterclient.go +++ b/matterclient/matterclient.go @@ -365,7 +365,8 @@ func (m *MMClient) parseActionPost(rmsg *Message) { data := model.PostFromJson(strings.NewReader(rmsg.Raw.Data["post"].(string))) // we don't have the user, refresh the userlist if m.GetUser(data.UserId) == nil { - m.log.Infof("User %s is not known, ignoring message %s", data.UserId, data.Message) + m.log.Infof("User '%v' is not known, ignoring message '%#v'", + data.UserId, data) return } rmsg.Username = m.GetUserName(data.UserId) @@ -896,7 +897,7 @@ func (m *MMClient) StatusLoop() { if m.OnWsConnect != nil { m.OnWsConnect() } - m.log.Debugf("StatusLoop: %p", m.OnWsConnect) + m.log.Debug("StatusLoop:", m.OnWsConnect != nil) for { if m.WsQuit { return |