mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Rotate the debug.log on each 100MB
This commit is contained in:
parent
3be9e8a0c2
commit
64391cd520
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ module ARTest
|
|||
|
||||
def self.connect
|
||||
puts "Using #{connection_name}"
|
||||
ActiveRecord::Model.logger = ActiveSupport::Logger.new("debug.log")
|
||||
ActiveRecord::Model.logger = ActiveSupport::Logger.new("debug.log", 0, 100 * 1024 * 1024)
|
||||
ActiveRecord::Model.configurations = connection_config
|
||||
ActiveRecord::Model.establish_connection 'arunit'
|
||||
ARUnit2Model.establish_connection 'arunit2'
|
||||
|
|
Loading…
Reference in a new issue