Skip to content

Commit

Permalink
Disable chip.Attribute logger (#480)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Hjelmare <[email protected]>
  • Loading branch information
marcelveldt and MartinHjelmare authored Dec 27, 2023
1 parent e43a69e commit 7b5b82f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions matter_server/server/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 7b5b82f

Please sign in to comment.