strix

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

commit 562b91cf9dd6508f40be259c625da69789fb9af8
parent ffe507601d2bc94523eb2e24519f40d98f3594a1
Author: Brian C. Lane <bcl@brianlane.com>
Date:   Sun, 20 Mar 2022 09:56:53 -0700

logger: Use a name for the logger

Diffstat:
Msrc/strix/logger.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/strix/logger.py b/src/strix/logger.py @@ -43,7 +43,7 @@ def listener(queue: mp.Queue, stop_event: mp.Event, log_path: str) -> None: handler = RotatingFileHandler(log_path, maxBytes=100*1024**2, backupCount=10) formatter = logging.Formatter('%(message)s') handler.setFormatter(formatter) - logger = logging.getLogger() + logger = logging.getLogger("logger-listener") logger.addHandler(handler) # XXX QueueListener doesn't work for me, do it manually