frostfs-node/pkg/services/tree
Aleksey Savchuk f0c43c8d80
[#1502] Use zap.Error for logging errors
Use `zap.Error` instead of `zap.String` for logging errors: change all expressions like
`zap.String("error", err.Error())` or `zap.String("err", err.Error())` to `zap.Error(err)`.
Leave similar expressions with other messages unchanged, for example,
`zap.String("last_error", lastErr.Error())` or `zap.String("reason", ctx.Err().Error())`.

This change was made by applying the following patch:
```diff
@@
var err expression
@@
-zap.String("error", err.Error())
+zap.Error(err)

@@
var err expression
@@
-zap.String("err", err.Error())
+zap.Error(err)
```

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-12-16 11:13:42 +03:00
..
ape.go [#1480] ape: Remove SoftAPECheck flag 2024-11-08 12:01:14 +00:00
ape_test.go [#1406] tree: Add unit-tests for ape check 2024-10-29 08:04:23 +00:00
cache.go [#1441] services/tree: Use grpc.WaitForReady option when creating client 2024-10-23 11:45:44 +00:00
container.go Rename package name 2023-03-07 16:38:26 +03:00
drop.go [#242] treesvc: Add tracing spans 2023-04-14 10:25:53 +00:00
getsubtree_test.go [#1437] node: Fix contextcheck linter 2024-11-13 10:36:10 +03:00
metrics.go [#17] Add morph client metrics 2023-06-13 14:06:04 +03:00
options.go [#1449] tree: Add ApplyBatch method 2024-11-12 12:11:07 +00:00
redirect.go [#1437] node: Use ctx for logging 2024-11-13 10:36:07 +03:00
replicator.go [#1502] Use zap.Error for logging errors 2024-12-16 11:13:42 +03:00
service.go [#1437] node: Use ctx for logging 2024-11-13 10:36:07 +03:00
service.proto [#1251] pilorama: Allow traversing multiple branches in parallel 2024-07-17 11:25:07 +03:00
service_frostfs.pb.go [#1479] tree: Regenerate service protobufs 2024-11-08 10:43:44 +03:00
service_grpc.pb.go [#1298] writecache: Add restore-mode flag for Seal command 2024-08-07 11:20:14 +03:00
signature.go [#1524] tree: Make check APE error get wrapped to api status 2024-11-29 10:48:16 +00:00
signature_test.go [#1479] go.mod: Bump frostfs-sdk-go version 2024-11-08 10:43:19 +03:00
sync.go [#1437] node: Fix contextcheck linter 2024-11-13 10:36:10 +03:00
sync_test.go [#1341] .golangci.yml: Replace exportloopref with copyloopvar 2024-08-28 15:44:41 +00:00
types.proto [#1250] *: Reformat proto filets with clang-format 2024-07-16 15:13:08 +00:00
types_frostfs.pb.go [#1479] tree: Regenerate service protobufs 2024-11-08 10:43:44 +03:00