module HeavyControl::Extensions::Logging
Public Instance Methods
load_missing_constant(from_mod, const_name)
click to toggle source
Calls superclass method
# File lib/heavy_control/extensions/logging.rb, line 6 def load_missing_constant(from_mod, const_name) hc_log "Load missing constant '#{const_name}' from #{from_mod}" super(from_mod, const_name) end
require_or_load(file_name, const_path = nil)
click to toggle source
Calls superclass method
# File lib/heavy_control/extensions/logging.rb, line 12 def require_or_load(file_name, const_path = nil) hc_log "Require of load '#{file_name}' with const_path '#{const_path}'" super(file_name, const_path) end
search_for_file(path_suffix)
click to toggle source
Calls superclass method
# File lib/heavy_control/extensions/logging.rb, line 18 def search_for_file(path_suffix) hc_log "Search for file with suffix '#{path_suffix}'" super(path_suffix).tap do |result| hc_log("and found '#{result}'") end end
Private Instance Methods
hc_log(msg)
click to toggle source
# File lib/heavy_control/extensions/logging.rb, line 28 def hc_log(msg) Rails.logger.debug "HeavyControl: #{msg}" end