mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Log batch ID if available, fixes #2076
This commit is contained in:
parent
5047f9220b
commit
4457f19e12
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
HEAD
|
||||||
|
-----------
|
||||||
|
|
||||||
|
- Log Sidekiq Pro's Batch ID if available [#2076]
|
||||||
|
|
||||||
|
|
||||||
3.3.0
|
3.3.0
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ module Sidekiq
|
||||||
class Logging
|
class Logging
|
||||||
|
|
||||||
def call(worker, item, queue)
|
def call(worker, item, queue)
|
||||||
Sidekiq::Logging.with_context("#{worker.class.to_s} JID-#{item['jid']}") do
|
Sidekiq::Logging.with_context("#{worker.class.to_s} JID-#{item['jid']}#{" BID-#{item['bid']}" if item['bid']}") do
|
||||||
begin
|
begin
|
||||||
start = Time.now
|
start = Time.now
|
||||||
logger.info { "start" }
|
logger.info { "start" }
|
||||||
|
|
Loading…
Reference in a new issue