diff options
author | Thom May <thom@chef.io> | 2018-03-23 13:05:13 +0000 |
---|---|---|
committer | Thom May <thom@chef.io> | 2018-03-23 15:36:45 +0000 |
commit | 41eb0672da4f678231f03b1b7e14dd631f8b1e49 (patch) | |
tree | fee217a9f5ada6b89487b71576524f86d2445717 /lib/chef/http/json_output.rb | |
parent | 57f74c4eae1c8683abacf92ad5bca86ae4a35522 (diff) | |
download | chef-tm/lower_debug.tar.gz |
mechanical conversion of most debug log statements to tracetm/lower_debug
Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'lib/chef/http/json_output.rb')
-rw-r--r-- | lib/chef/http/json_output.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/http/json_output.rb b/lib/chef/http/json_output.rb index dc363cdc54..25f1380ceb 100644 --- a/lib/chef/http/json_output.rb +++ b/lib/chef/http/json_output.rb @@ -60,9 +60,9 @@ class Chef end [http_response, rest_request, return_value] else - Chef::Log.debug("Expected JSON response, but got content-type '#{http_response['content-type']}'") + Chef::Log.trace("Expected JSON response, but got content-type '#{http_response['content-type']}'") if http_response.body - Chef::Log.debug("Response body contains:\n#{http_response.body.length < 256 ? http_response.body : http_response.body[0..256] + " [...truncated...]"}") + Chef::Log.trace("Response body contains:\n#{http_response.body.length < 256 ? http_response.body : http_response.body[0..256] + " [...truncated...]"}") end return [http_response, rest_request, http_response.body.to_s] end |