Always apply base log level suppressions for noisy third-party libraries even if no specific logConfig is provided

This commit is contained in:
Josh Hawkins 2025-12-18 15:16:26 -06:00
parent 886d9c4a55
commit 2f9308e0b1

View File

@ -65,10 +65,15 @@ class FrigateProcess(BaseProcess):
logging.basicConfig(handlers=[], force=True)
logging.getLogger().addHandler(QueueHandler(self.__log_queue))
# Always apply base log level suppressions for noisy third-party libraries
# even if no specific logConfig is provided
if logConfig:
frigate.log.apply_log_levels(
logConfig.default.value.upper(), logConfig.logs
)
else:
# Apply default INFO level with standard library suppressions
frigate.log.apply_log_levels("INFO", {})
self._setup_memray()