diff --git a/client/core/core.go b/client/core/core.go index 84b3222e46..e40593bbbe 100644 --- a/client/core/core.go +++ b/client/core/core.go @@ -8379,7 +8379,7 @@ out: c.log.Errorf("A response was received in the message queue: %s", msg) continue default: - c.log.Errorf("Invalid message type %d from MessageSource", msg.Type) + c.log.Errorf("Invalid message type %s from MessageSource", msg.Type) continue } // Until all the routes have handlers, check for nil too. diff --git a/client/websocket/websocket.go b/client/websocket/websocket.go index c9a684a5bf..2ae63acacb 100644 --- a/client/websocket/websocket.go +++ b/client/websocket/websocket.go @@ -192,7 +192,7 @@ func (s *Server) Notify(route string, payload interface{}) { // handleMessage handles the websocket message, calling the right handler for // the route. func (s *Server) handleMessage(conn *wsClient, msg *msgjson.Message) *msgjson.Error { - s.log.Tracef("message of type %d received for route %s", msg.Type, msg.Route) + s.log.Tracef("message of type %s received for route %s", msg.Type, msg.Route) if msg.Type == msgjson.Request { handler, found := wsHandlers[msg.Route] if !found { diff --git a/dex/msgjson/types.go b/dex/msgjson/types.go index df21664872..821b5b8f22 100644 --- a/dex/msgjson/types.go +++ b/dex/msgjson/types.go @@ -400,7 +400,7 @@ func NewResponse(id uint64, result interface{}, rpcErr *Error) (*Message, error) // Payload is []byte("null"). func (msg *Message) Response() (*ResponsePayload, error) { if msg.Type != Response { - return nil, fmt.Errorf("invalid type %d for ResponsePayload", msg.Type) + return nil, fmt.Errorf("invalid type %s for ResponsePayload", msg.Type) } resp := new(ResponsePayload) err := json.Unmarshal(msg.Payload, &resp)