Explorar o código

Extra logging for non OP0 events, for now.

Bruce Marriner %!s(int64=9) %!d(string=hai) anos
pai
achega
d557bb24a5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 	}