mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 09:10:25 +08:00
Enable logging behind ENV var for test mode
This commit is contained in:
parent
95b9ea1222
commit
7fb62bdab4
1 changed files with 4 additions and 2 deletions
|
@ -42,6 +42,8 @@ Discourse::Application.configure do
|
|||
|
||||
config.eager_load = false
|
||||
|
||||
config.logger = Logger.new(nil)
|
||||
config.log_level = :fatal
|
||||
unless ENV['RAILS_ENABLE_TEST_LOG']
|
||||
config.logger = Logger.new(nil)
|
||||
config.log_level = :fatal
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue