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