Skip to content

Commit

Permalink
fix BeforeHandler.Handlers res
Browse files Browse the repository at this point in the history
  • Loading branch information
张云飞 authored and felipejfc committed Dec 26, 2020
1 parent dc45a18 commit 9943b0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion service/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ func (h *HandlerService) localProcess(ctx context.Context, a *agent.Agent, route
// DumpServices outputs all registered services
func (h *HandlerService) DumpServices() {
for name := range handlers {
logger.Log.Infof("registered handler %s, isRawArg: %s", name, handlers[name].IsRawArg)
logger.Log.Infof("registered handler %s, isRawArg: %v", name, handlers[name].IsRawArg)
}
}

Expand Down
2 changes: 1 addition & 1 deletion service/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func executeBeforePipeline(ctx context.Context, data interface{}) (context.Conte
res := data
if len(pipeline.BeforeHandler.Handlers) > 0 {
for _, h := range pipeline.BeforeHandler.Handlers {
ctx, _, err = h(ctx, res)
ctx, res, err = h(ctx, res)
if err != nil {
logger.Log.Debugf("pitaya/handler: broken pipeline: %s", err.Error())
return ctx, res, err
Expand Down

0 comments on commit 9943b0b

Please sign in to comment.