Commit 5f3a62fc authored by Benjamin Neff's avatar Benjamin Neff

Disable rendering logging in production

parent 138b7062
......@@ -85,6 +85,7 @@ Logging::Rails.configure do |config|
Logging.logger.root.level = config.log_level
# log-levels from the diaspora.yml for SQL and federation debug-logging
Logging.logger[ActionView::Base].level = Rails.env.development? ? :debug : :warn
Logging.logger[ActiveRecord::Base].level = AppConfig.environment.logging.debug.sql? ? :debug : :info
Logging.logger[DiasporaFederation::Salmon::MagicEnvelope].level =
AppConfig.environment.logging.debug.federation? ? :debug : :info
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment