mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Pass more context from Sidekiq jobs to Logster
This commit is contained in:
parent
ede8f22971
commit
2b5a955c18
2 changed files with 20 additions and 9 deletions
|
@ -9,7 +9,8 @@ module Discourse
|
|||
extend Sidekiq::ExceptionHandler
|
||||
end
|
||||
|
||||
def self.handle_exception(ex, context=nil, parent_logger = nil)
|
||||
# Responsible for exceptions in Sidekiq jobs - not requests!
|
||||
def self.handle_exception(ex, context = nil, parent_logger = nil)
|
||||
context ||= {}
|
||||
parent_logger ||= SidekiqExceptionHandler
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue