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

Version Path
resque-retry-1.8.1 lib/resque/plugins/retry/logging.rb
resque-retry-1.8.0 lib/resque/plugins/retry/logging.rb
resque-retry-1.7.6 lib/resque/plugins/retry/logging.rb
resque-retry-1.7.5 lib/resque/plugins/retry/logging.rb
resque-retry-1.7.4 lib/resque/plugins/retry/logging.rb
resque-retry-1.7.3 lib/resque/plugins/retry/logging.rb
resque-retry-1.7.2 lib/resque/plugins/retry/logging.rb
resque-retry-1.7.1 lib/resque/plugins/retry/logging.rb
resque-retry-1.7.0 lib/resque/plugins/retry/logging.rb
resque-retry-1.6.0 lib/resque/plugins/retry/logging.rb
resque-retry-1.5.3 lib/resque/plugins/retry/logging.rb
resque-retry-1.5.2 lib/resque/plugins/retry/logging.rb
resque-retry-1.5.0 lib/resque/plugins/retry/logging.rb
resque-retry-1.4.0 lib/resque/plugins/retry/logging.rb
resque-retry-1.3.2 lib/resque/plugins/retry/logging.rb
resque-retry-1.3.1 lib/resque/plugins/retry/logging.rb
resque-retry-1.3.0 lib/resque/plugins/retry/logging.rb
resque-retry-1.2.1 lib/resque/plugins/retry/logging.rb
resque-retry-1.2.0 lib/resque/plugins/retry/logging.rb