mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-18 00:54:27 +03:00
Filter out tflite log
This commit is contained in:
parent
0517c40bc8
commit
8164b2457a
@ -18,12 +18,19 @@ LOG_HANDLER.setFormatter(
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# filter out norfair warning
|
||||||
LOG_HANDLER.addFilter(
|
LOG_HANDLER.addFilter(
|
||||||
lambda record: not record.getMessage().startswith(
|
lambda record: not record.getMessage().startswith(
|
||||||
"You are using a scalar distance function"
|
"You are using a scalar distance function"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# filter out tflite logging
|
||||||
|
LOG_HANDLER.addFilter(
|
||||||
|
lambda record: "Created TensorFlow Lite XNNPACK delegate for CPU."
|
||||||
|
not in record.getMessage()
|
||||||
|
)
|
||||||
|
|
||||||
log_listener: Optional[QueueListener] = None
|
log_listener: Optional[QueueListener] = None
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user