From 7b5b82f39409d4e09d0adc9dfa5c42a9c901e081 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Wed, 27 Dec 2023 17:00:56 +0100 Subject: [PATCH] Disable chip.Attribute logger (#480) Co-authored-by: Martin Hjelmare --- matter_server/server/__main__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/matter_server/server/__main__.py b/matter_server/server/__main__.py index d11eb071..19da9e0a 100644 --- a/matter_server/server/__main__.py +++ b/matter_server/server/__main__.py @@ -73,6 +73,11 @@ def main() -> None: if not logging.getLogger().isEnabledFor(logging.DEBUG): logging.getLogger("chip").setLevel(logging.WARNING) logging.getLogger("PersistentStorage").setLevel(logging.WARNING) + # Temporary disable the logger of chip.clusters.Attribute because it now logs + # an error on every custom attribute that couldn't be parsed which confuses people. + # We can restore the default log level again when we've patched the device controller + # to handle the raw attribute data to deal with custom clusters. + logging.getLogger("chip.clusters.Attribute").setLevel(logging.CRITICAL) # make sure storage path exists if not os.path.isdir(args.storage_path):