소스 검색

Extra logging for non OP0 events, for now.

Bruce Marriner 9 년 전
부모
커밋
d557bb24a5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
 	}