mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
log interface
This commit is contained in:
@@ -2,6 +2,7 @@ import asyncio
|
||||
|
||||
from .application import init
|
||||
from .logging import get_logger
|
||||
from .logging import Log
|
||||
|
||||
from .hid import Hid
|
||||
from .atx import Atx
|
||||
@@ -22,6 +23,11 @@ def main() -> None:
|
||||
with gpio.bcm():
|
||||
loop = asyncio.get_event_loop()
|
||||
|
||||
log = Log(
|
||||
services=list(config["log"]["services"]),
|
||||
loop=loop,
|
||||
)
|
||||
|
||||
hid = Hid(
|
||||
reset=int(config["hid"]["pinout"]["reset"]),
|
||||
device_path=str(config["hid"]["device"]),
|
||||
@@ -60,6 +66,7 @@ def main() -> None:
|
||||
)
|
||||
|
||||
Server(
|
||||
log=log,
|
||||
hid=hid,
|
||||
atx=atx,
|
||||
msd=msd,
|
||||
|
||||
Reference in New Issue
Block a user