set application_name on database connection
This commit is contained in:
parent
887a797ae6
commit
3ade697ed3
|
@ -200,6 +200,8 @@ module Travis::Api
|
|||
end
|
||||
|
||||
def self.setup_database_connections
|
||||
Travis.config.database.variables ||= {}
|
||||
Travis.config.database.variables.application_name ||= ["api", Travis.config.env, ENV['DYNO']].compact.join(?-)
|
||||
Travis::Database.connect
|
||||
|
||||
if Travis.config.logs_database
|
||||
|
|
Loading…
Reference in New Issue
Block a user