forked from TrueCloudLab/frostfs-node
[#790] writecache: Log each writing operation
Call `storagelog.Write` in all places after the successful writing op. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
4f73c00776
commit
3258d9c616
5 changed files with 27 additions and 1 deletions
|
@ -31,7 +31,7 @@ type options struct {
|
|||
// WithLogger sets logger.
|
||||
func WithLogger(log *zap.Logger) Option {
|
||||
return func(o *options) {
|
||||
o.log = log
|
||||
o.log = log.With(zap.String("component", "WriteCache"))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue