Skip to content

Commit 793f793

Browse files
committed
Add SSL debugging
Previously there was no good way to view the SSL configuration that was eventually negotiated. This change ensures that that information is logged at DEBUG.
1 parent adc8af6 commit 793f793

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

java-buildpack.iml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@
274274
<orderEntry type="library" scope="PROVIDED" name="addressable (v2.3.6, rbenv: 1.9.3-p547) [gem]" level="application" />
275275
<orderEntry type="library" scope="PROVIDED" name="ast (v2.0.0, rbenv: 1.9.3-p547) [gem]" level="application" />
276276
<orderEntry type="library" scope="PROVIDED" name="astrolabe (v1.3.0, rbenv: 1.9.3-p547) [gem]" level="application" />
277-
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.7.3, rbenv: 1.9.3-p547) [gem]" level="application" />
277+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.7.4, rbenv: 1.9.3-p547) [gem]" level="application" />
278278
<orderEntry type="library" scope="PROVIDED" name="codeclimate-test-reporter (v0.4.1, rbenv: 1.9.3-p547) [gem]" level="application" />
279279
<orderEntry type="library" scope="PROVIDED" name="crack (v0.4.2, rbenv: 1.9.3-p547) [gem]" level="application" />
280280
<orderEntry type="library" scope="PROVIDED" name="debugger-ruby_core_source (v1.3.5, rbenv: 1.9.3-p547) [gem]" level="application" />

lib/java_buildpack/util/cache/download_cache.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ def secure?(uri)
256256
def update(uri, cached_file)
257257
proxy(uri).start(uri.host, uri.port, http_options(uri)) do |http|
258258
@logger.debug { "HTTP: #{http.address}, #{http.port}, #{http_options(uri)}" }
259+
@logger.debug { http.instance_variable_get('@socket').io.session.to_text } if secure? uri
259260
request = request uri, cached_file
260261
request.basic_auth uri.user, uri.password if uri.user && uri.password
261262

0 commit comments

Comments
 (0)