lib/honeybadger/logging.rb in honeybadger-3.2.0 vs lib/honeybadger/logging.rb in honeybadger-3.3.0
- old
+ new
@@ -2,16 +2,17 @@
require 'singleton'
require 'delegate'
require 'forwardable'
module Honeybadger
+ # @api private
module Logging
PREFIX = '** [Honeybadger] '.freeze
- # 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.
+ # 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?