Skip to content

Commit b15928b

Browse files
committed
print the downloaded file and debugging statement
Signed-off-by: muthuja <muthujabavaji.vempalli@progress.com>
1 parent 332bce5 commit b15928b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/omnibus/fetchers/net_fetcher.rb

+6-1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def clean
8181
#
8282
def fetch
8383
log.info(log_key) { "Downloading from `#{download_url}'" }
84+
log.info(log_key) { "-----DEBUG" }
8485

8586
create_required_directories
8687
download
@@ -121,14 +122,16 @@ def self.resolve_version(version, source)
121122
def downloaded_file
122123
filename = source[:cached_name] if source[:cached_name]
123124
filename ||= File.basename(source[:url], "?*")
125+
puts "********START DEBUGGING FROM HERE********"
126+
log.info(log_key) { "-----DEBUG-----file name is #{filename}" }
124127
File.join(Config.cache_dir, filename)
125128
end
126129

127130
#
128131
# The checksum as defined by the user in the software definition.
129132
#
130133
# @return [String]
131-
#
134+
#
132135
def checksum
133136
source[digest_type]
134137
end
@@ -162,6 +165,8 @@ def download_url
162165
# @return [void]
163166
#
164167
def download
168+
log.info(log_key) { "-----DEBUG-----" }
169+
puts "********START DEBUGGING FROM HERE********"
165170
log.warn(log_key) { source[:warning] } if source.key?(:warning)
166171

167172
options = {}

0 commit comments

Comments
 (0)