From 3b72375b5357a8677f75d84bf6306a8bdddb62d6 Mon Sep 17 00:00:00 2001 From: George Tsiamasiotis Date: Tue, 17 Sep 2024 15:23:30 +0300 Subject: [PATCH] Do not access log record's msg directly --- frigate/log.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frigate/log.py b/frigate/log.py index fc92fd472..475be50d4 100644 --- a/frigate/log.py +++ b/frigate/log.py @@ -22,7 +22,9 @@ LOG_HANDLER.setFormatter( ) LOG_HANDLER.addFilter( - lambda record: not record.msg.startswith("You are using a scalar distance function") + lambda record: not record.getMessage().startswith( + "You are using a scalar distance function" + ) )