lib/honeybadger/logging.rb in honeybadger-2.0.0.beta.6 vs lib/honeybadger/logging.rb in honeybadger-2.0.0.beta.7
- old
+ new
@@ -9,10 +9,11 @@
# Internal: Logging helper methods. Requires a Honeybadger::Config @config
# instance variable to exist and/or #logger to be defined. Each
# method is defined/block captured in this module rather than delegating to
# the logger directly to avoid extra object allocation.
module Helper
+ private
def debug(msg = nil)
return true unless logger.debug?
msg = yield if block_given?
logger.debug(msg)
end
@@ -132,10 +133,10 @@
super(severity, supplement(msg, severity))
end
end
def debug?
- @config.debug?
+ @config.log_debug?
end
private
def suppress_debug?