1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activejob/test/jobs/overridden_logging_job.rb

11 lines
253 B
Ruby
Raw Normal View History

2017-06-22 22:59:18 -04:00
# frozen_string_literal: true
2016-06-17 12:01:03 -04:00
class OverriddenLoggingJob < ActiveJob::Base
def perform(dummy)
logger.info "Dummy, here is it: #{dummy}"
end
def logger
@logger ||= ActiveSupport::TaggedLogging.new(ActiveSupport::Logger.new(nil))
end
end