mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 18:58:10 +00:00
Enable logging behind ENV var for test mode
This commit is contained in:
parent
95b9ea1222
commit
7fb62bdab4
@ -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…
x
Reference in New Issue
Block a user