frostfs-node/pkg
Ekaterina Lebedeva 471aeeaff3 [#1659] audit: Fix duplicated request logs
When we do `object put` with audit enabled we get several entries
in logs: with and without object id.

`object put` request is logged in 2 places:
1. `(*auditPutStream) CloseAndRecv()` - when the client closes the
   request stream or when stream gets aborted.
2. `(*auditPutStream) Send()` - when stream was NOT aborted.

`Send()` does error check for `ErrAbortStream` because if there
is any other error - CloseAndRecv will not be called and there
won't be any audit log about failed request.
It led to logging on every object chunck put, even if `err == nil`.

Added check for `err != nil` in `Send()` to fix it.

Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
2025-03-06 12:36:16 +03:00
..
ape [#1613] morph: Add tracing for morph queries to neo-go 2025-02-05 16:38:20 +03:00
core [#1613] morph: Add tracing for morph queries to neo-go 2025-02-05 16:38:20 +03:00
innerring [#1628] innerring: Relax container homomorphic hashing check 2025-02-27 10:20:08 +03:00
local_object_storage [#1636] engine: Validate limiter release in unit tests 2025-02-28 17:25:30 +03:00
morph [#1613] morph: Add tracing for morph queries to neo-go 2025-02-05 16:38:20 +03:00
network [#1608] qos: Add client grpc interceptors 2025-02-07 15:43:04 +03:00
services [#1659] audit: Fix duplicated request logs 2025-03-06 12:36:16 +03:00
tracing [#146] node: Add trace_id to logs 2023-09-27 11:05:27 +03:00
util [#1608] logger: Add IO tag logging 2025-02-07 15:43:03 +03:00