mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 21:35:58 +03:00
[GH-ISSUE #1289] curldbg should log some request and response bodies #691
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#691
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gaul on GitHub (May 14, 2020).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1289
It would be helped to log the request bodies for calls like
CompleteMultipartUploadand the response bodies for calls likeListObjects.@ggtakec commented on GitHub (May 14, 2020):
@gaul I also agree with your opinion.
I think there are two ways to do that.
One is to implement
CURLOPT_DEBUGFUNCTIONto enable fine control.The other is to output bodies as a debug message only for
CompleteMultipartUploadandListObjects.I think that implementing the
DEBUG FUNCTIONwill take some effort. Thus I think the second option is better.In any case, I think we also need to upgreade the curldbg option.
If always dumping the body will make the debug log bigger than current.
Therefore, I think it seems better to divide the curl debug information into the current level and the level at which body is dumped.
For example, we prepare for three types curldbg:
curldbg(no parameter: same as the current),curldbg=normal(same as no parameter for curldbg),curldbg=deep(with dumping bodies).It means that new curldbg option can have a parameters(optional).
If there is no problem with this idea, I will make a PR for this issue.
@ggtakec commented on GitHub (May 25, 2020):
Close this Issue.
If the problem remains, please reopen.