Feat: Streamline and extend logging
This commit is contained in:
@@ -28,7 +28,8 @@ class DeleteController extends AbstractController
|
||||
|
||||
$this->addFlash('success', 'Die Bewerbung wurde gelöscht');
|
||||
$this->logger->info('Delete application', [
|
||||
'application' => $application->getUuid(),
|
||||
'application_id' => $application->getId(),
|
||||
'teamer' => (string) $application->getTeamer(),
|
||||
]);
|
||||
|
||||
return $this->redirectToRoute('app_admin_assignment_detail', [
|
||||
|
||||
@@ -33,7 +33,9 @@ class DisposeController extends AbstractController
|
||||
|
||||
$this->addFlash('success', 'Der Teamer wurde eingeteilt');
|
||||
$this->logger->info('Create disposition', [
|
||||
'disposition' => $disposition->getUuid(),
|
||||
'application_id' => $application->getId(),
|
||||
'disposition_id' => $disposition->getId(),
|
||||
'teamer' => (string) $application->getTeamer(),
|
||||
]);
|
||||
|
||||
return $this->redirectToRoute('app_admin_assignment_detail', [
|
||||
|
||||
@@ -44,8 +44,9 @@ class StatusController extends AbstractController
|
||||
|
||||
$this->addFlash('success', 'Der Status der Bewerbung wurde aktualisiert');
|
||||
$this->logger->info('Update application status', [
|
||||
'application' => $application->getUuid(),
|
||||
'application_id' => $application->getId(),
|
||||
'status_new' => $formData->getStatus(),
|
||||
'teamer' => (string) $application->getTeamer(),
|
||||
]);
|
||||
|
||||
$response->setCloseAndRedirect($this->generateUrl('app_admin_assignment_detail', [
|
||||
|
||||
Reference in New Issue
Block a user