Sha256: 8a11c374b767447daeb2a60fbb93906ff83b626d34c2e7f00df153e332beec38
Contents?: true
Size: 772 Bytes
Versions: 2
Compression:
Stored size: 772 Bytes
Contents
# frozen_string_literal: true module HeavyControl module Extensions module Logging def load_missing_constant(from_mod, const_name) hc_log "Load missing constant '#{const_name}' from #{from_mod}" super(from_mod, const_name) end 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 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 def hc_log(msg) Rails.logger.debug "HeavyControl: #{msg}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
heavy_control-0.1.2 | lib/heavy_control/extensions/logging.rb |
heavy_control-0.1.1 | lib/heavy_control/extensions/logging.rb |