Skip to content

Commit

Permalink
Rotate the debug.log on each 100MB
Browse files Browse the repository at this point in the history
  • Loading branch information
fatkodima committed Apr 13, 2022
1 parent 6bb0e0e commit 7159f5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/doc/
/guides/output/
Brewfile.lock.json
debug.log
debug.log*
node_modules/
package-lock.json
pkg/
Expand Down
2 changes: 1 addition & 1 deletion activerecord/test/support/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7159f5b

Please sign in to comment.