forked from TrueCloudLab/frostfs-node
[#1837] services/object: Fix log messages
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>support/v0.34
parent
ca8dc872b2
commit
0cb8e7f6f1
|
@ -18,7 +18,7 @@ func (exec *execCtx) processNode(ctx context.Context, info client.NodeInfo) {
|
|||
ids, err := client.searchObjects(exec, info)
|
||||
|
||||
if err != nil {
|
||||
exec.log.Debug("local operation failed",
|
||||
exec.log.Debug("remote operation failed",
|
||||
zap.String("error", err.Error()),
|
||||
)
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@ func New(opts ...Option) *Service {
|
|||
// WithLogger returns option to specify Get service's logger.
|
||||
func WithLogger(l *logger.Logger) Option {
|
||||
return func(c *cfg) {
|
||||
c.log = l.With(zap.String("component", "Object.Get service"))
|
||||
c.log = l.With(zap.String("component", "Object.Search service"))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue