[#1619] logger: Set tags for node components
All checks were successful
DCO action / DCO (pull_request) Successful in 42s
Vulncheck / Vulncheck (pull_request) Successful in 52s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m25s
Build / Build Components (pull_request) Successful in 1m45s
Tests and linters / Run gofumpt (pull_request) Successful in 2m52s
Tests and linters / Lint (pull_request) Successful in 3m33s
Tests and linters / Staticcheck (pull_request) Successful in 3m30s
Tests and linters / gopls check (pull_request) Successful in 3m37s
Tests and linters / Tests with -race (pull_request) Successful in 3m47s
Tests and linters / Tests (pull_request) Successful in 3m56s

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 b0bf4643d0
commit cb1792c69b
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)
}
}