module Sentry::LoggingHelper
def log_error(message, exception, debug: false)
def log_error(message, exception, debug: false) message = "#{message}: #{exception.message}" message += "\n#{exception.backtrace.join("\n")}" if debug @logger.error(LOGGER_PROGNAME) do message end end