diff options
author | Devaev Maxim <[email protected]> | 2018-10-28 06:51:51 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-10-28 07:03:14 +0300 |
commit | ab342111d0c88e13e0d0d4a79c1e14150a7d4ef3 (patch) | |
tree | 022ec24cc8b7fde70fba8833ef8a35fcad228e48 /kvmd/__init__.py | |
parent | 1f54776ce0a1429a7ddcc4ac8b09054c48d67953 (diff) |
log interface
Diffstat (limited to 'kvmd/__init__.py')
-rw-r--r-- | kvmd/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kvmd/__init__.py b/kvmd/__init__.py index 77c49ad0..93f9e2de 100644 --- a/kvmd/__init__.py +++ b/kvmd/__init__.py @@ -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, |