diff --git a/web/src/pages/Logs.tsx b/web/src/pages/Logs.tsx index 05ff9143f..053ad51f9 100644 --- a/web/src/pages/Logs.tsx +++ b/web/src/pages/Logs.tsx @@ -20,9 +20,11 @@ function Logs() { const [logService, setLogService] = useState("frigate"); const [logs, setLogs] = useState("frigate"); - const { data: frigateLogs } = useSWR("logs/frigate"); - const { data: go2rtcLogs } = useSWR("logs/go2rtc"); - const { data: nginxLogs } = useSWR("logs/nginx"); + const { data: frigateLogs } = useSWR("logs/frigate", { + refreshInterval: 1000, + }); + const { data: go2rtcLogs } = useSWR("logs/go2rtc", { refreshInterval: 1000 }); + const { data: nginxLogs } = useSWR("logs/nginx", { refreshInterval: 1000 }); const handleCopyLogs = useCallback(() => { copy(logs);