From 0e98f52c93b043329935acb77d1503c0fd8b5298 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Thu, 27 Jun 2024 13:19:26 +0200 Subject: [PATCH] chore(logs): update FSM logs Signed-off-by: Valery Piashchynski --- fsm/fsm.go | 2 +- pool/static_pool/supervisor_test.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/fsm/fsm.go b/fsm/fsm.go index 7ccff5c..ca740a9 100644 --- a/fsm/fsm.go +++ b/fsm/fsm.go @@ -39,7 +39,7 @@ Transition moves worker from one state to another func (s *Fsm) Transition(to int64) { err := s.recognizer(to) if err != nil { - s.log.Debug("fsm transition error", zap.Error(err)) + s.log.Debug("transition info, this is not an error", zap.String("debug", err.Error())) return } diff --git a/pool/static_pool/supervisor_test.go b/pool/static_pool/supervisor_test.go index 6b59561..6c85fb4 100644 --- a/pool/static_pool/supervisor_test.go +++ b/pool/static_pool/supervisor_test.go @@ -425,7 +425,6 @@ func TestSupervisedPool_Idle(t *testing.T) { }, make(chan struct{})) assert.NoError(t, err) - time.Sleep(time.Second * 2) require.Len(t, p.Workers(), 1) // should be new worker with new pid assert.NotEqual(t, pid, p.Workers()[0].Pid())