Browse Source

Extra logging for non OP0 events, for now.

Bruce Marriner 9 years ago
parent
commit
d557bb24a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wsapi.go

+ 1 - 1
wsapi.go

@@ -319,7 +319,7 @@ func (s *Session) onEvent(messageType int, message []byte) {
 	if e.Operation != 0 {
 		// But we probably should be doing something with them.
 		// TEMP
-		s.log(LogWarning, "Op: %d, Seq: %d, Type: %s, Data: %s", e.Operation, e.Sequence, e.Type, string(e.RawData))
+		s.log(LogWarning, "Op: %d, Seq: %d, Type: %s, Data: %s, message: %s", e.Operation, e.Sequence, e.Type, string(e.RawData), string(message))
 		return
 	}