From 8d19abfebd89e23b7955c23729ad1ea01036faf3 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 17 Oct 2023 01:11:35 +0300 Subject: [PATCH] small fixes Signed-off-by: Vasiliy Tolstov --- fsm/fsm_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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...) } }