summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsersut <serdar@opscode.com>2014-03-27 11:17:44 -0700
committersersut <serdar@opscode.com>2014-03-27 15:37:26 -0700
commit88e9b68dbdb1d0094ad529e9e6dc3d3df3a001f0 (patch)
tree5751f9dac1b649842000368572c2120bacd1ff2f
parent77b5d44143f94ad604de7d6013dd9be4f503a6e5 (diff)
downloadchef-88e9b68dbdb1d0094ad529e9e6dc3d3df3a001f0.tar.gz
Additional debug logs per PR comments.
-rw-r--r--lib/chef/http/decompressor.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/chef/http/decompressor.rb b/lib/chef/http/decompressor.rb
index 7d4a5f61dd..e1d776da60 100644
--- a/lib/chef/http/decompressor.rb
+++ b/lib/chef/http/decompressor.rb
@@ -94,16 +94,21 @@ class Chef
# object you can use to unzip/inflate a streaming response.
def stream_response_handler(response)
if gzip_disabled?
+ Chef::Log.debug "disable_gzip is set. \
+ Not using #{response[CONTENT_ENCODING]} \
+ and initializing noop stream deflator."
NoopInflater.new
else
case response[CONTENT_ENCODING]
when GZIP
- Chef::Log.debug "initializing gzip stream deflator"
+ Chef::Log.debug "Initializing gzip stream deflator"
GzipInflater.new
when DEFLATE
- Chef::Log.debug "initializing deflate stream deflator"
+ Chef::Log.debug "Initializing deflate stream deflator"
DeflateInflater.new
else
+ Chef::Log.debug "content_encoding = '#{response[CONTENT_ENCODING]}' \
+ initializing noop stream deflator."
NoopInflater.new
end
end