Merge pull request #9465 from colinux/fix-log-destruction-trace

ETQ exploitant: amélioration du log de destruction de dossier
This commit is contained in:
LeSim 2023-09-06 15:30:37 +00:00 committed by GitHub
commit 56f1627b26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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