frostfs-node/pkg/local_object_storage/shard
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
..
mode [#1121] node: Change mode of shard components 2024-06-05 05:55:24 +00:00
container.go [#864] engine: Drop container count metric if container removed 2024-01-10 10:45:32 +03:00
control.go [#1502] Use zap.Error for logging errors 2024-12-16 11:13:42 +03:00
control_test.go [#1437] shard: Fix contextcheck linter 2024-11-13 10:36:09 +03:00
count.go [#838] metabase: Add user object type counter 2023-12-06 15:44:21 +03:00
delete.go [#1502] Use zap.Error for logging errors 2024-12-16 11:13:42 +03:00
delete_test.go [#1437] shard: Fix contextcheck linter 2024-11-13 10:36:09 +03:00
errors.go [#481] Update frostfs-sdk-go and error pointer receivers 2023-08-09 10:26:53 +00:00
exists.go [#1548] engine: Rename parent -> ecParent 2024-12-11 07:26:33 +00:00
gc.go [#1502] Use zap.Error for logging errors 2024-12-16 11:13:42 +03:00
gc_internal_test.go [#1437] node: Fix contextcheck linter 2024-11-13 10:36:10 +03:00
gc_test.go [#1437] shard: Fix contextcheck linter 2024-11-13 10:36:09 +03:00
get.go [#1437] node: Use ctx for logging 2024-11-13 10:36:07 +03:00
get_test.go [#1437] shard: Fix contextcheck linter 2024-11-13 10:36:09 +03:00
head.go [#1349] node: Evacuate objects without setting mode to MAINTENANCE 2024-09-05 16:08:27 +03:00
head_test.go [#1437] shard: Fix contextcheck linter 2024-11-13 10:36:09 +03:00
id.go [#1437] shard: Fix contextcheck linter 2024-11-13 10:36:09 +03:00
info.go [#1349] node: Evacuate objects without setting mode to MAINTENANCE 2024-09-05 16:08:27 +03:00
inhume.go [#1502] Use zap.Error for logging errors 2024-12-16 11:13:42 +03:00
inhume_test.go [#1437] shard: Fix contextcheck linter 2024-11-13 10:36:09 +03:00
list.go [#1502] Use zap.Error for logging errors 2024-12-16 11:13:42 +03:00
list_test.go [#1437] shard: Fix contextcheck linter 2024-11-13 10:36:09 +03:00
lock.go [#1555] local_object_storage: Rename method GetLocked -> GetLocks 2024-12-11 15:06:37 +03:00
lock_test.go [#1437] node: Fix contextcheck linter 2024-11-13 10:36:10 +03:00
metrics.go [#1431] node: Fix comment format 2024-10-15 08:53:59 +00:00
metrics_test.go [#1437] shard: Fix contextcheck linter 2024-11-13 10:36:09 +03:00
mode.go [#1437] shard: Fix contextcheck linter 2024-11-13 10:36:09 +03:00
put.go [#1502] Use zap.Error for logging errors 2024-12-16 11:13:42 +03:00
range.go [#1349] node: Evacuate objects without setting mode to MAINTENANCE 2024-09-05 16:08:27 +03:00
range_test.go [#1437] shard: Fix contextcheck linter 2024-11-13 10:36:09 +03:00
rebuild.go [#1437] shard: Fix contextcheck linter 2024-11-13 10:36:09 +03:00
refill_test.go [#1437] shard: Fix contextcheck linter 2024-11-13 10:36:09 +03:00
reload_test.go [#1437] shard: Fix contextcheck linter 2024-11-13 10:36:09 +03:00
select.go [#1412] searchSvc: Check container is indexed 2024-10-08 11:41:50 +03:00
shard.go [#1437] node: Fix contextcheck linter 2024-11-13 10:36:10 +03:00
shard_test.go [#1437] node: Fix contextcheck linter 2024-11-13 10:36:10 +03:00
shutdown_test.go [#1437] shard: Fix contextcheck linter 2024-11-13 10:36:09 +03:00
tree.go [#1449] tree: Add ApplyBatch method 2024-11-12 12:11:07 +00:00
writecache.go [#1437] node: Use ctx for logging 2024-11-13 10:36:07 +03:00