Skip to content

What is the best way to print out a custom attribute added on a middleware after Sidekiq 6.4.1 #5343

Answered by mperham
swarut-mdsol asked this question in Q&A
Discussion options

You must be logged in to vote

You don't need a custom job logger at all. In your server middleware, you'd just add:

Sidekiq::Context.with("hello" => job["hello"], &block)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by swarut-mdsol
Comment options

You must be logged in to vote
2 replies
@mperham
Comment options

@swarut-mdsol
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants