From befc2ebdc6dbc0afd7de8a46e8bf7c41899cd524 Mon Sep 17 00:00:00 2001 From: Miguel N Date: Fri, 5 Nov 2021 10:36:19 +0000 Subject: [PATCH] Added better cancel log message Added a better cancellation log message that details the reason for cancelling the appointment. --- app/Services/AppointmentService.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Services/AppointmentService.php b/app/Services/AppointmentService.php index e5a6a65..b4a1382 100644 --- a/app/Services/AppointmentService.php +++ b/app/Services/AppointmentService.php @@ -73,7 +73,11 @@ class AppointmentService $application->setStatus('STAGE_INTERVIEW'); - Log::info('User '.Auth::user()->name.' cancelled an appointment with '.$application->user->name.' for application ID'.$application->id); + Log::info('An interview appointment has just been cancelled.', [ + 'actor' => Auth::user()->name, + 'applicant' => $application->user->name, + 'reason' => $reason + ]); return true; }