fix(log): fix caller of log destroyed dossiers

This commit is contained in:
Colin Darie 2023-06-21 16:42:41 +02:00
parent d69636c411
commit 31db96cf41
No known key found for this signature in database
GPG key ID: 8C76CADD40253590

View file

@ -1408,7 +1408,7 @@ class Dossier < ApplicationRecord
request_id: Current.request_id,
user_id: Current.user&.id,
controller: app_traces.find { _1.match?(%r{/controllers/|/jobs/}) },
caller: app_traces.second # first is the callback definition
caller: app_traces.first
}
logger = Lograge.logger || Rails.logger