[#1611] shard: Print shard ID in component logs

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-07-19 14:27:12 +03:00 committed by fyrchik
parent 9f7a22e2aa
commit 11c9df6f00
4 changed files with 27 additions and 0 deletions

View file

@ -91,6 +91,11 @@ func New(opts ...Option) *BlobStor {
}
}
// SetLogger sets logger. It is used after the shard ID was generated to use it in logs.
func (b *BlobStor) SetLogger(l *zap.Logger) {
b.log = l
}
// WithShallowDepth returns option to set the
// depth of the object file subdirectory tree.
//