strix

A simple web UI for motion
git clone https://www.brianlane.com/git/strix
Log | Files | Refs | LICENSE

commit 4acd781401efd634e61246c168523f64421b6831
parent f877c9f13e5f669032ca8800bcd1d6495d8daca9
Author: Brian C. Lane <bcl@brianlane.com>
Date:   Sun, 20 Mar 2022 10:02:31 -0700

api: Switch EventCache console logger to use api file logger

Diffstat:
Msrc/strix/api.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/strix/api.py b/src/strix/api.py @@ -27,7 +27,7 @@ from bottle import install, route, run, static_file, request, Response, JSONPlug from json import dumps from . import logger -from .events import camera_events +from .events import camera_events, EventCache TIME_FORMAT = "%Y-%m-%d %H:%M:%S" def timestr_to_dt(rfc_str: str) -> datetime: @@ -36,6 +36,7 @@ def timestr_to_dt(rfc_str: str) -> datetime: def run_api(logging_queue: mp.Queue, base_dir: str, host: str, port: int, debug: bool) -> None: log = logger.log(logging_queue) log.info("Starting API", base_dir=base_dir, host=host, port=port, debug=debug) + EventCache.logger(log) @route('/') @route('/<filename>')