Module: Bridgetown::Deprecator

Defined in:
lib/bridgetown-core/deprecator.rb

Class Method Summary collapse

Class Method Details

.deprecation_message(message) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/bridgetown-core/deprecator.rb', line 5

def self.deprecation_message(message)
  Bridgetown.logger.warn "Deprecation:", message

  caller_locations[0..1].each_with_index do |backtrace_line, index|
    Bridgetown.logger.debug "#{index + 1}:", backtrace_line
  end
end