File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments