Module: Resque::Plugins::Retry::Logging
- Included in:
- Failure::MultipleWithRetrySuppression, Resque::Plugins::Retry
- Defined in:
- lib/resque/plugins/retry/logging.rb
Instance Method Summary collapse
-
#log_message(message, args = nil, exception = nil) ⇒ Object
private
Log messages through the Resque logger (DEBUG level).
Instance Method Details
#log_message(message, args = nil, exception = nil) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Log messages through the Resque logger (DEBUG level). Generally not for application logging-just for inner-workings of Resque and plugins.
14 15 16 17 18 19 |
# File 'lib/resque/plugins/retry/logging.rb', line 14 def (, args=nil, exception=nil) return unless Resque.logger exception_portion = exception.nil? ? '' : " [#{exception.class}/#{exception}]" Resque.logger.debug "resque-retry -- #{args.inspect}#{exception_portion}: #{}" end |