- # Don't eager load models when the database is offline
- if STATUS == :database_offline
- config.paths["app/models"].skip_eager_load!
+ # Use logstash for logging if required
+ if defined?(LOGSTASH_PATH)
+ config.logstasher.enabled = true
+ config.logstasher.suppress_app_log = false
+ config.logstasher.logger_path = LOGSTASH_PATH
+ config.logstasher.log_controller_parameters = true