[#1770] logger: Refactor Logger component

Make it store its internal `zap.Logger`'s level. Also, make all the
components to accept internal `logger.Logger` instead of `zap.Logger`; it
will simplify future refactor.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-09-28 10:41:01 +03:00 committed by Pavel Karpy
parent 4baf00aa21
commit f037022a7a
83 changed files with 207 additions and 156 deletions

View file

@ -12,8 +12,8 @@ import (
nmClient "github.com/nspcc-dev/neofs-node/pkg/morph/client/netmap"
"github.com/nspcc-dev/neofs-node/pkg/morph/event"
"github.com/nspcc-dev/neofs-node/pkg/morph/event/rolemanagement"
"github.com/nspcc-dev/neofs-node/pkg/util/logger"
"github.com/panjf2000/ants/v2"
"go.uber.org/zap"
)
// ProcessorPoolSize limits the pool size for governance Processor. Processor manages
@ -55,7 +55,7 @@ type (
// Processor of events related to governance in the network.
Processor struct {
log *zap.Logger
log *logger.Logger
pool *ants.Pool
neofsClient *neofscontract.Client
netmapClient *nmClient.Client
@ -75,7 +75,7 @@ type (
// Params of the processor constructor.
Params struct {
Log *zap.Logger
Log *logger.Logger
AlphabetState AlphabetState
EpochState EpochState