mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35:22 +03:00
Remove tail
This commit is contained in:
parent
01284740a8
commit
80d071c84b
@ -1,23 +1,8 @@
|
||||
import { h } from 'preact';
|
||||
import Heading from '../components/Heading';
|
||||
import { useEffect } from 'preact/hooks';
|
||||
import { tail } from 'tail';
|
||||
|
||||
const Tail = tail.Tail;
|
||||
|
||||
export default function Logs() {
|
||||
const stdout = new Tail("/dev/stdout");
|
||||
|
||||
useEffect(() => {
|
||||
stdout.on("line", (data) => {
|
||||
console.log(data);
|
||||
});
|
||||
|
||||
return () => {
|
||||
stdout.unwatch();
|
||||
};
|
||||
});
|
||||
|
||||
return (
|
||||
<div className="space-y-4 p-2 px-4">
|
||||
<Heading>Logs</Heading>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user