Sha256: 7e6d88155b662a2cf9e5d244ce3e1e773663fa50d6b3bc842e48126701a50e82
Contents?: true
Size: 770 Bytes
Versions: 19
Compression:
Stored size: 770 Bytes
Contents
module Resque module Plugins module Retry module Logging # Log messages through the Resque logger (DEBUG level). # Generally not for application logging-just for inner-workings of # Resque and plugins. # # @param [String] message to log # @param [Object] args of the resque job in context # @param [Object] exception that might be causing a retry # # @api private def log_message(message, args=nil, exception=nil) return unless Resque.logger exception_portion = exception.nil? ? '' : " [#{exception.class}/#{exception}]" Resque.logger.debug "resque-retry -- #{args.inspect}#{exception_portion}: #{message}" end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems