Skip to content

Commit e81860a

Browse files
committed
log more error info about S3 problems, trying to diagnose the sporadic problem where match pages are missing most of the needed info
1 parent 98172d8 commit e81860a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/controllers/matches_controller.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ def show
88
begin
99
blob_response = Curl.get(blob_url)
1010
rescue Exception => e
11+
Rails.logger.error "YO EXCEPTION WHILE HITTING S3"
12+
Rails.logger.error e.message
13+
st = e.backtrace.join("\n")
14+
Rails.logger.error st
1115
# sometimes there are random problems retrieving from S3. we
1216
# dont need to hear about each one.
1317
# TODO complain if there are too many consecutive failures
@@ -49,8 +53,8 @@ def show
4953
gon.match = @match.to_hash
5054
if blob_response && blob_response.status[0] == '2'
5155
gon.matchblob = blob_response.body_str
52-
# else
53-
# Rails.logger.warn("Got blob response status #{blob_response.status} for match #{@match.id}")
56+
else
57+
Rails.logger.warn("Got blob response status #{blob_response.status} for match #{@match.id}")
5458
end
5559
end
5660

0 commit comments

Comments
 (0)