[#1619] logger: Set tags for node
components
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
c939a2a88e
commit
0f89e7817c
19 changed files with 63 additions and 20 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue