don't run metrics etc in heroku console
This commit is contained in:
parent
48cf45c5f6
commit
2e6865d55f
|
@ -100,6 +100,10 @@ module Travis::Api
|
|||
|
||||
private
|
||||
|
||||
def self.console?
|
||||
defined? Travis::Console
|
||||
end
|
||||
|
||||
def self.setup!
|
||||
setup_travis
|
||||
load_endpoints
|
||||
|
@ -118,7 +122,7 @@ module Travis::Api
|
|||
end
|
||||
end
|
||||
|
||||
if Travis.env == 'production'
|
||||
if Travis.env == 'production' and not console?
|
||||
Raven.configure do |config|
|
||||
config.dsn = Travis.config.sentry.dsn
|
||||
end if Travis.config.sentry
|
||||
|
|
Loading…
Reference in New Issue
Block a user