lib/phobos.rb in phobos-1.8.3.pre.beta2 vs lib/phobos.rb in phobos-1.9.0.pre.beta1
- old
+ new
@@ -76,10 +76,11 @@
max = backoff_config[:max_ms] / 1000.0
ExponentialBackoff.new(min, max).tap { |backoff| backoff.randomize_factor = rand }
end
def deprecate(message)
- warn "DEPRECATION WARNING: #{message} #{Kernel.caller.first}"
+ location = caller.find { |line| line !~ %r{/phobos/} }
+ warn "DEPRECATION WARNING: #{message}: #{location}"
end
# :nodoc:
def configure_logger
Logging.backtrace(true)