Skip to content

Commit

Permalink
More logging
Browse files Browse the repository at this point in the history
  • Loading branch information
HazelGrant committed Dec 6, 2024
1 parent f9908a1 commit a7bdbfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apps/dashboard/app/controllers/files_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ def upload
request.env[Rack::RACK_TEMPFILES].reject! { |f| f.path == params[:file].tempfile.path } unless posix_file?

@transfer = @path.handle_upload(params[:file].tempfile)

puts "searching for the error location"
if @transfer.kind_of?(Transfer)
render 'transfers/show'
else
Expand Down
1 change: 0 additions & 1 deletion apps/dashboard/app/models/remote_transfer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ def build(action:, files:, src_remote:, dest_remote:, tempfile: nil)
#
# convert [a1, a2, a3] to {a1 => nil, a2 => nil, a3 => nil}
files = Hash[files.map { |f| [f, nil] }].with_indifferent_access
puts files
end
self.new(action: action, files: files, src_remote: src_remote, dest_remote: dest_remote, tempfile: tempfile)
end
Expand Down

0 comments on commit a7bdbfa

Please sign in to comment.