forked from TrueCloudLab/frostfs-node
Dmitrii Stepanov
70a1081988
Pass required deps as args. Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
12 lines
213 B
Go
12 lines
213 B
Go
package v2
|
|
|
|
import (
|
|
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/util/logger"
|
|
)
|
|
|
|
// WithLogger returns option to set logger.
|
|
func WithLogger(v *logger.Logger) Option {
|
|
return func(c *cfg) {
|
|
c.log = v
|
|
}
|
|
}
|