Rotate the debug.log on each 100MB

This commit is contained in:
fatkodima 2022-04-13 15:37:59 +03:00
parent 6bb0e0efb2
commit 7159f5b879
2 changed files with 2 additions and 2 deletions

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