Sha256: 113034611a15925f6f482a41c0c3120b32aa84034388c9f1295be0a0f359d1d3
Contents?: true
Size: 520 Bytes
Versions: 1
Compression:
Stored size: 520 Bytes
Contents
# frozen_string_literal: true require "sidekiq/job_logger" module Heavylog class SidekiqLogger < Sidekiq::JobLogger def call(item, _queue) # item = {"class"=>"SuspiciousJob", "args"=>[12754545, [3858890], "invoice"], "retry"=>true, "queue"=>"default", # "jid"=>"5ec968571e358497d70a3cf2", "created_at"=>1540484817.3950138, "enqueued_at"=>1540484817.395076} Heavylog.log_sidekiq(item["jid"], item["class"], item["args"]) super ensure Heavylog.finish_sidekiq end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
heavylog-0.0.16 | lib/heavylog/sidekiq_logger.rb |