Skip to content

Commit

Permalink
Add temporary log to service
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Hahn committed Mar 19, 2019
1 parent ab8f485 commit 483dd9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion service/util.go
Expand Up @@ -26,7 +26,7 @@ import (
"fmt"
"reflect"

"github.com/gogo/protobuf/proto"
"github.com/golang/protobuf/proto"
"github.com/topfreegames/pitaya/component"
"github.com/topfreegames/pitaya/conn/message"
"github.com/topfreegames/pitaya/constants"
Expand Down Expand Up @@ -171,6 +171,7 @@ func processHandlerMessage(
// both handler and pipeline functions
arg, err := unmarshalHandlerArg(h, serializer, data)
if err != nil {
logger.Warnf("invalid message: %s", string(data))
return nil, e.NewError(err, e.ErrBadRequestCode)
}

Expand Down

0 comments on commit 483dd9d

Please sign in to comment.