• Clayton Coleman's avatar
    Logging request / response body should not allocate · ea2ab71f
    Clayton Coleman authored
    Putting string(data) in the critical path causes an allocation which can
    be very large, and happens regardless of whether logging is enabled.
    
    Also, use the more sophisticated logging of body output that avoids
    causing quoting of JSON output (current behavior is "{\"key\":...}" and
    should be {"key":...} for readability).
    ea2ab71f
Name
Last commit
Last update
..
fake Loading commit data...
BUILD Loading commit data...
client.go Loading commit data...
client_test.go Loading commit data...
config.go Loading commit data...
config_test.go Loading commit data...
plugin.go Loading commit data...
plugin_test.go Loading commit data...
request.go Loading commit data...
request_test.go Loading commit data...
transport.go Loading commit data...
url_utils.go Loading commit data...
url_utils_test.go Loading commit data...
urlbackoff.go Loading commit data...
urlbackoff_test.go Loading commit data...
versions.go Loading commit data...