disable newrelic
This commit is contained in:
parent
01c585e189
commit
48cc0d366a
|
@ -1,6 +1,6 @@
|
||||||
require 'travis/api/app'
|
require 'travis/api/app'
|
||||||
require 'sinatra/base'
|
require 'sinatra/base'
|
||||||
require 'new_relic/agent/instrumentation/rack'
|
#require 'new_relic/agent/instrumentation/rack'
|
||||||
|
|
||||||
class Travis::Api::App
|
class Travis::Api::App
|
||||||
# Superclass for any endpoint and middleware.
|
# Superclass for any endpoint and middleware.
|
||||||
|
@ -9,7 +9,7 @@ class Travis::Api::App
|
||||||
register Extensions::SmartConstants
|
register Extensions::SmartConstants
|
||||||
|
|
||||||
configure :production do
|
configure :production do
|
||||||
require 'newrelic_rpm'
|
#require 'newrelic_rpm'
|
||||||
end
|
end
|
||||||
|
|
||||||
error NotImplementedError do
|
error NotImplementedError do
|
||||||
|
@ -18,12 +18,6 @@ class Travis::Api::App
|
||||||
"This feature has not yet been implemented. Sorry :(\n\nPull Requests welcome!"
|
"This feature has not yet been implemented. Sorry :(\n\nPull Requests welcome!"
|
||||||
end
|
end
|
||||||
|
|
||||||
def call(env)
|
|
||||||
super
|
|
||||||
rescue Sinatra::NotFound
|
|
||||||
[404, {'Content-Type' => 'text/plain'}, ['Tell Konstantin to fix this!']]
|
|
||||||
end
|
|
||||||
|
|
||||||
configure do
|
configure do
|
||||||
# We pull in certain protection middleware in App.
|
# We pull in certain protection middleware in App.
|
||||||
# Being token based makes us invulnerable to common
|
# Being token based makes us invulnerable to common
|
||||||
|
|
Loading…
Reference in New Issue
Block a user