[#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

@ -91,7 +91,7 @@ func WithStorages(st []SubStorage) Option {
// WithLogger returns option to specify BlobStor's logger.
func WithLogger(l *logger.Logger) Option {
return func(c *cfg) {
c.log = l.With(zap.String("component", "BlobStor"))
c.log = l.With(zap.String("component", "BlobStor")).WithTag(logger.TagBlobstor)
}
}