diff --git a/www/src/Controller/LogsController.php b/www/src/Controller/LogsController.php deleted file mode 100644 index 4ce5e2f..0000000 --- a/www/src/Controller/LogsController.php +++ /dev/null @@ -1,39 +0,0 @@ -}/logs/{service}", name="logs_i18n") - */ - public function logs($service = "all") - { - $logs = ""; - if ($service === "all") { - foreach (explode(" ", $this->allowed_services) as $service) { - $logs .= $this->journal_logs($service); - } - } else if (str_contains($this->allowed_services, $service)) { - $logs .= $this->journal_logs($service); - } else { - return new Response("Service not found", Response::HTTP_BAD_REQUEST); - } - return $this->render('logs/logs.html.twig', [ - 'logs' => $logs - ]); - } - - private function journal_logs($service) - { - $logs = shell_exec("journalctl -u birdnet_recording -n 10"); - return $logs; - } -}