[#1619] logger: Set tags for node components

Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
Anton Nikiforov 2025-01-29 15:39:28 +03:00
parent c939a2a88e
commit 0f89e7817c
19 changed files with 63 additions and 20 deletions

View file

@ -43,7 +43,7 @@ type options struct {
// WithLogger sets logger.
func WithLogger(log *logger.Logger) Option {
return func(o *options) {
o.log = log.With(zap.String("component", "WriteCache"))
o.log = log.With(zap.String("component", "WriteCache")).WithTag(logger.TagWriteCache)
}
}