[#1837] services/object: Fix log messages

Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
Evgenii Stratonikov 2022-10-05 09:34:17 +03:00 committed by fyrchik
parent ca8dc872b2
commit 0cb8e7f6f1
2 changed files with 2 additions and 2 deletions

View file

@ -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()),
)

View file

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