Rotate the debug.log on each 100MB
This commit is contained in:
parent
6bb0e0efb2
commit
7159f5b879
2
.gitignore
vendored
2
.gitignore
vendored
@ -10,7 +10,7 @@
|
||||
/doc/
|
||||
/guides/output/
|
||||
Brewfile.lock.json
|
||||
debug.log
|
||||
debug.log*
|
||||
node_modules/
|
||||
package-lock.json
|
||||
pkg/
|
||||
|
@ -21,7 +21,7 @@ def self.test_configuration_hashes
|
||||
def self.connect
|
||||
ActiveRecord.async_query_executor = :global_thread_pool
|
||||
puts "Using #{connection_name}"
|
||||
ActiveRecord::Base.logger = ActiveSupport::Logger.new("debug.log", 0, 100 * 1024 * 1024)
|
||||
ActiveRecord::Base.logger = ActiveSupport::Logger.new("debug.log", 1, 100 * 1024 * 1024)
|
||||
ActiveRecord::Base.configurations = test_configuration_hashes
|
||||
ActiveRecord::Base.establish_connection :arunit
|
||||
ARUnit2Model.establish_connection :arunit2
|
||||
|
Loading…
Reference in New Issue
Block a user