mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
Pass more context from Sidekiq jobs to Logster
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user