[#369] Modify http logging #441

Merged
nzinkevich merged 1 commit from nzinkevich/frostfs-s3-gw:feature/log_response into feature/369 2024-09-04 19:51:14 +00:00
Member
No description provided.
dkirillov was assigned by nzinkevich 2024-07-24 08:51:36 +00:00
pogpp was assigned by nzinkevich 2024-07-24 08:51:36 +00:00
nzinkevich added 3 commits 2024-07-24 08:51:40 +00:00
Signed-off-by: Nikita Zinkevich <n.zinkevich@yadro.com>
Signed-off-by: Nikita Zinkevich <n.zinkevich@yadro.com>
[#369] Add response logging
All checks were successful
/ DCO (pull_request) Successful in 45s
/ Builds (1.20) (pull_request) Successful in 1m36s
/ Builds (1.21) (pull_request) Successful in 1m29s
/ Vulncheck (pull_request) Successful in 2m29s
/ Lint (pull_request) Successful in 2m45s
/ Tests (1.20) (pull_request) Successful in 1m45s
/ Tests (1.21) (pull_request) Successful in 1m42s
e530031c10
Signed-off-by: Nikita Zinkevich <n.zinkevich@yadro.com>
nzinkevich changed title from Modify http logging to [#369] Modify http logging 2024-07-24 08:52:59 +00:00
dkirillov was unassigned by nzinkevich 2024-07-24 09:07:50 +00:00
pogpp was unassigned by nzinkevich 2024-07-24 09:07:50 +00:00
nzinkevich requested review from pogpp 2024-07-24 09:07:57 +00:00
alexvanin requested changes 2024-07-24 09:39:59 +00:00
@ -390,3 +391,3 @@
|----------------|--------|---------------|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `enabled` | bool | yes | false | Flag to enable the logger. |
| `max_body` | int | yes | 1024 | Max body size for log output in bytes. |
| `max_body` | int | yes | 10 | Max size for request and response bodies that will be attached to the log (in megabytes). |
Owner

If we want more usability, then we have to support strings with k and m suffixes, e.g.
10m, 100k` etc.

Until then, use just bytes.

If we want more usability, then we have to support strings with `k` and `m` suffixes, e.g. `10m`, 100k` etc. Until then, use just bytes.
nzinkevich force-pushed feature/log_response from e530031c10 to 5d55934748 2024-07-24 10:36:50 +00:00 Compare
alexvanin approved these changes 2024-07-24 10:52:26 +00:00
nzinkevich merged commit 5d55934748 into feature/369 2024-07-24 10:53:01 +00:00
nzinkevich deleted branch feature/log_response 2024-07-24 10:53:02 +00:00
Sign in to join this conversation.
No description provided.