[#1611] shard: Print shard ID in component logs
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
9f7a22e2aa
commit
11c9df6f00
4 changed files with 27 additions and 0 deletions
|
@ -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.
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue