[#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:
Leonard Lyubich 2021-09-06 17:28:55 +03:00 committed by Leonard Lyubich
parent 4f73c00776
commit 3258d9c616
5 changed files with 27 additions and 1 deletions

View file

@ -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"))
}
}