Skip to content

Commit d9c480c

Browse files
author
Glyn Normington
committed
Merge 54290822-downgrade-no-internet-logging to master
[Completes #54290822]
2 parents f218356 + 73edb1d commit d9c480c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/java_buildpack/util/download_cache.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ def filenames(uri)
142142
# A download has failed, so check the read-only buildpack cache for the file
143143
# and use the copy there if it exists.
144144
def look_aside(filenames, uri)
145-
@logger.warn "Unable to download from #{uri}. Looking in buildpack cache."
145+
@logger.debug "Unable to download from #{uri}. Looking in buildpack cache."
146146
key = URI.escape(uri, '/')
147147
stashed = File.join(ENV['BUILDPACK_CACHE'], 'java-buildpack', "#{key}.cached")
148148
@logger.debug { "Looking in buildpack cache for file '#{stashed}'" }
149149
if File.exist? stashed
150150
FileUtils.cp(stashed, filenames[:cached])
151-
@logger.info "Using copy of #{uri} from buildpack cache."
151+
@logger.debug "Using copy of #{uri} from buildpack cache."
152152
true
153153
else
154154
@logger.warn "Buildpack cache does not contain #{uri}. Failing the download."

0 commit comments

Comments
 (0)