Enable logging behind ENV var for test mode

This commit is contained in:
Robin Ward 2017-07-13 11:38:17 -04:00
parent 95b9ea1222
commit 7fb62bdab4
1 changed files with 4 additions and 2 deletions

View File

@ -42,6 +42,8 @@ Discourse::Application.configure do
config.eager_load = false
unless ENV['RAILS_ENABLE_TEST_LOG']
config.logger = Logger.new(nil)
config.log_level = :fatal
end
end