frostfs-node/pkg/services
Ekaterina Lebedeva 471aeeaff3
All checks were successful
DCO action / DCO (pull_request) Successful in 56s
Vulncheck / Vulncheck (pull_request) Successful in 1m23s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m44s
Build / Build Components (pull_request) Successful in 2m9s
Tests and linters / Tests with -race (pull_request) Successful in 4m2s
Tests and linters / gopls check (pull_request) Successful in 4m7s
Tests and linters / Lint (pull_request) Successful in 4m40s
Tests and linters / Run gofumpt (pull_request) Successful in 4m38s
Tests and linters / Tests (pull_request) Successful in 5m1s
Tests and linters / Staticcheck (pull_request) Successful in 5m14s
Vulncheck / Vulncheck (push) Successful in 1m12s
Build / Build Components (push) Successful in 1m53s
Pre-commit hooks / Pre-commit (push) Successful in 2m5s
Tests and linters / Tests with -race (push) Successful in 4m25s
Tests and linters / gopls check (push) Successful in 4m28s
OCI image / Build container images (push) Successful in 4m41s
Tests and linters / Staticcheck (push) Successful in 5m11s
Tests and linters / Lint (push) Successful in 5m20s
Tests and linters / Tests (push) Successful in 5m28s
Tests and linters / Run gofumpt (push) Successful in 8m5s
[#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
..
accounting [#1613] morph: Add tracing for morph queries to neo-go 2025-02-05 16:38:20 +03:00
apemanager [#1651] apemanager: Wrap some errors with InvalidArgument status 2025-02-27 18:25:09 +00:00
common/ape [#1613] morph: Add tracing for morph queries to neo-go 2025-02-05 16:38:20 +03:00
container [#1613] morph: Add tracing for morph queries to neo-go 2025-02-05 16:38:20 +03:00
control [#1613] morph: Add tracing for morph queries to neo-go 2025-02-05 16:38:20 +03:00
netmap [#1613] morph: Add tracing for morph queries to neo-go 2025-02-05 16:38:20 +03:00
object [#1659] audit: Fix duplicated request logs 2025-03-06 12:36:16 +03:00
object_manager [#1613] morph: Add tracing for morph queries to neo-go 2025-02-05 16:38:20 +03:00
policer [#1608] policer: Add IO tag to context 2025-02-07 15:43:05 +03:00
replicator [#1620] logs: Drop redundant trace_id fields 2025-01-29 16:13:51 +03:00
session [#1581] services/session: Use user.ID.EncodeToString() where possible 2024-12-25 18:09:36 +00:00
tree [#1608] tree: Add IO tag for tree sync requests 2025-02-07 15:43:06 +03:00
util [#1479] go.mod: Bump frostfs-sdk-go version 2024-11-08 10:43:19 +03:00