Skip to content

Commit

Permalink
#1 more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 14, 2016
1 parent 4549210 commit c89b984
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion objects/s3.rb
Expand Up @@ -42,6 +42,7 @@ def load
puts "S3 #{data.size} from #{@object.bucket_name}/#{@object.key}"
data
else
puts "Empty puzzles for #{@object.bucket_name}/#{@object.key}"
"<puzzles date='#{Time.now.iso8601}' version='#{VERSION}'/>"
end
)
Expand All @@ -50,6 +51,7 @@ def load
def save(xml)
data = xml.to_s
@object.put(body: data)
puts "S3 #{data.size} to #{@object.bucket_name}/#{@object.key}"
puts "S3 #{data.size} to #{@object.bucket_name}/#{@object.key} \
(#{xml.xpath('//puzzle').size} puzzles)"
end
end

0 comments on commit c89b984

Please sign in to comment.