Class: Rails::Log::Profiling::QueryProfilingLogger

Inherits:
Object
  • Object
show all
Defined in:
lib/rails/log/profiling/query_profiling_logger.rb

Class Method Summary collapse

Class Method Details

.runObject



5
6
7
8
9
10
11
# File 'lib/rails/log/profiling/query_profiling_logger.rb', line 5

def self.run
  require 'fileutils'
  @root_path = Rails.root.to_s
  Rails::Log::Profiling.current_path = Regexp.quote(@root_path)
  FileUtils.mkdir_p(@root_path + '/log')
  rails_log_query_profiling_setting
end