opendal
opendal copied to clipboard
refactor(layers/logging): Don't trigger logigng in heavy IO path
Which issue does this PR close?
None
Rationale for this change
Users reported that logging layer can result in heavy CPU usage in profile:
What changes are included in this PR?
It's not a good idea to trigger log even while it's a cheap operations (like length.to_string())
Are there any user-facing changes?
Logs are smaller.
After this PR: