diff --git a/fsm/fsm_test.go b/fsm/fsm_test.go index 800b2d91..ad5f50c1 100644 --- a/fsm/fsm_test.go +++ b/fsm/fsm_test.go @@ -17,7 +17,7 @@ func TestFSMStart(t *testing.T) { wrapper := func(next StateFunc) StateFunc { return func(sctx context.Context, s State, opts ...StateOption) (State, error) { - sctx = logger.NewContext(sctx, logger.Fields("state", s.Name())) + sctx = logger.NewContext(sctx, logger.Attrs("state", s.Name())) return next(sctx, s, opts...) } }