Connect logs to a different DB if config is present
This commit is contained in:
parent
0f539e0da4
commit
d170b611b0
|
@ -53,7 +53,7 @@ GIT
|
|||
|
||||
GIT
|
||||
remote: git://github.com/travis-ci/travis-support.git
|
||||
revision: bd497bc60f75374956be24437dae5cad96374f6b
|
||||
revision: a19ad9390721c75513505fd60191633789f55a42
|
||||
specs:
|
||||
travis-support (0.0.1)
|
||||
|
||||
|
|
|
@ -164,6 +164,11 @@ module Travis::Api
|
|||
|
||||
def self.setup_database_connections
|
||||
Travis::Database.connect
|
||||
|
||||
if Travis.config.logs_database
|
||||
Log.establish_connection 'logs_database'
|
||||
Log::Part.establish_connection 'logs_database'
|
||||
end
|
||||
end
|
||||
|
||||
def self.load_endpoints
|
||||
|
|
Loading…
Reference in New Issue
Block a user