Move the include of splunklogging into the appconfig check

This commit is contained in:
Raphael Sofaer 2011-08-16 12:26:57 -07:00
parent 1bd7e1314f
commit 25752e9f93

View file

@ -1,5 +1,5 @@
if AppConfig[:enable_splunk_logging]
require File.expand_path('../../../lib/log_overrider', __FILE__)
Rails.logger.class.send(:include, SplunkLogging)
end
Rails.logger.class.send(:include, SplunkLogging)