File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
lib/puppet_forge_server/backends Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ def get_file_buffer(relative_path)
40
40
unless File . exist? ( "#{ path } " )
41
41
buffer = download ( "#{ @file_path . chomp ( '/' ) } /#{ relative_path } " )
42
42
File . open ( target_file , 'wb' ) do |file |
43
- file . write ( buffer . read )
43
+ bytes = buffer . read
44
+ file . write ( bytes )
45
+ @log . debug ( "Saved #{ bytes . size } bytes in filesystem cache for path: #{ relative_path } , target file: #{ target_file } " )
44
46
end
45
47
path = target_file
46
48
else
@@ -69,6 +71,7 @@ def get_non_mutable(relative_url)
69
71
buffer = get ( relative_url )
70
72
File . open ( target_file , 'wb' ) do |file |
71
73
file . write ( buffer )
74
+ @log . debug ( "Saved #{ buffer } bytes in filesystem cache for url: #{ relative_url } , target file: #{ target_file } " )
72
75
end
73
76
path = target_file
74
77
else
You can’t perform that action at this time.
0 commit comments