• Kubernetes Submit Queue's avatar
    Merge pull request #52512 from apelisse/truncate-body · 413cf643
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 53135, 52512, 48339). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    client-go: Truncate printed body based on Verbosity level
    
    **What this PR does / why we need it**: If log verbosity is above 8, it will print the full request and response body. These might be very big (especially when downloading the openapi), and it takes multiple seconds just to print it ... Truncates the printing of that body if the level is less than 10.
    
    **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: Vaguely related to #52089
    
    **Special notes for your reviewer**:
    
    **Release note**:
    ```release-note
    NONE
    ```
    413cf643
Name
Last commit
Last update
..
Godeps Loading commit data...
discovery Loading commit data...
dynamic Loading commit data...
examples Loading commit data...
informers Loading commit data...
kubernetes Loading commit data...
listers Loading commit data...
pkg/version Loading commit data...
plugin/pkg Loading commit data...
rest Loading commit data...
testing Loading commit data...
third_party/forked/golang/template Loading commit data...
tools Loading commit data...
transport Loading commit data...
util Loading commit data...
LICENSE Loading commit data...
OWNERS Loading commit data...