Skip to content

Commit

Permalink
Merge pull request #1 from himanshu-myupchar/removing_print_statement
Browse files Browse the repository at this point in the history
removing print
  • Loading branch information
himanshu-myupchar authored Dec 3, 2019
2 parents 6773e5a + 5f0d406 commit be1ebde
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions lib/paperclip/storage/s3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,24 +148,15 @@ def self.extended base
end


print "***********************************************************"
print @options
print "*********************************************************** "

print "11111111111111111111111111111111 "

unless @options[:url].to_s.match(/\A:s3.*url\z/) || @options[:url] == ":asset_host".freeze
@options[:path] = path_option.gsub(/:url/, @options[:url]).sub(/\A:rails_root\/public\/system/, "".freeze)
@options[:url] = ":s3_path_url".freeze
end
print "22222222222222222222222222222222 "
@options[:url] = @options[:url].inspect if @options[:url].is_a?(Symbol)

@http_proxy = @options[:http_proxy] || nil

print "*********************************************************** "
print @options
print "***********************************************************"

@use_accelerate_endpoint = @options[:use_accelerate_endpoint]
end

Expand Down Expand Up @@ -387,9 +378,7 @@ def flush_writes #:nodoc:
write_options[:metadata] = @s3_metadata unless @s3_metadata.empty?
write_options.merge!(@s3_headers)

print " *** ABOUT TO UPLOAD *** "
s3_object(style).upload_file(file.path, write_options)
print " *** FINISHED UPLOADING ***"
rescue ::Aws::S3::Errors::NoSuchBucket
create_bucket
retry
Expand Down

0 comments on commit be1ebde

Please sign in to comment.