[#1619] logger: Set tags for node
components
Change-Id: I55ffcce9d2a74fdd47621674739b07f2e20199e3 Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
e297a7d928
commit
b0cf6f51c0
23 changed files with 145 additions and 39 deletions
|
@ -224,7 +224,7 @@ func New(opts ...Option) *StorageEngine {
|
|||
// WithLogger returns option to set StorageEngine's logger.
|
||||
func WithLogger(l *logger.Logger) Option {
|
||||
return func(c *cfg) {
|
||||
c.log = l
|
||||
c.log = l.WithTag(logger.TagEngine)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue