mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 11:45:24 +03:00
Automatically refresh logs while viewing
This commit is contained in:
parent
36e5c1ecdd
commit
e2a67d583a
@ -20,9 +20,11 @@ function Logs() {
|
||||
const [logService, setLogService] = useState<LogType>("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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user