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
8
8
begin
9
9
blob_response = Curl . get ( blob_url )
10
10
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
11
15
# sometimes there are random problems retrieving from S3. we
12
16
# dont need to hear about each one.
13
17
# TODO complain if there are too many consecutive failures
@@ -49,8 +53,8 @@ def show
49
53
gon . match = @match . to_hash
50
54
if blob_response && blob_response . status [ 0 ] == '2'
51
55
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 } " )
54
58
end
55
59
end
56
60
You can’t perform that action at this time.
0 commit comments