some changes to get errors to report to Sentry
This commit is contained in:
parent
0e43360f1d
commit
2ded8ac2be
|
@ -102,7 +102,7 @@ module Travis::Api
|
|||
use(Rack::Config) { |env| env['metriks.request.start'] ||= Time.now.utc }
|
||||
|
||||
use Travis::Api::App::Cors # if Travis.env == 'development' ???
|
||||
use Raven::Rack if Travis.env == 'production' || Travis.env == 'staging'
|
||||
use Raven::Rack if Travis::Api::App.use_monitoring?
|
||||
use Rack::SSL if Endpoint.production?
|
||||
use ActiveRecord::ConnectionAdapters::ConnectionManagement
|
||||
use ActiveRecord::QueryCache
|
||||
|
@ -192,7 +192,7 @@ module Travis::Api
|
|||
end
|
||||
end
|
||||
|
||||
if use_monitoring? and not console?
|
||||
if use_monitoring? && !console
|
||||
setup_monitoring
|
||||
end
|
||||
end
|
||||
|
|
|
@ -9,7 +9,7 @@ class Travis::Api::App
|
|||
Thread.new do
|
||||
loop do
|
||||
begin
|
||||
Raven.send queue.pop
|
||||
Raven.send :send_event, queue.pop
|
||||
rescue Exception => e
|
||||
puts e.message, e.backtrace
|
||||
end
|
||||
|
|
|
@ -16,7 +16,7 @@ end
|
|||
|
||||
V3 = Travis::API::V3
|
||||
|
||||
Travis::Api::App.setup
|
||||
Travis::Api::App.new
|
||||
console = Travis::Console.new
|
||||
methods = Travis::Console.instance_methods - Object.instance_methods
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user