Added better cancel log message

Added a better cancellation log message that details the reason for cancelling the appointment.
This commit is contained in:
Miguel Nogueira 2021-11-05 10:36:19 +00:00 committed by GitHub
parent c6a2d2a449
commit befc2ebdc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}