Skip to content

Commit e36b950

Browse files
authored
Lower log level of zeroconf (#591)
1 parent 6669709 commit e36b950

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

matter_server/server/__main__.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Script entry point to run the Matter Server."""
2+
23
import argparse
34
import asyncio
45
import logging
@@ -110,6 +111,10 @@ def _setup_logging() -> None:
110111
# We can restore the default log level again when we've patched the device controller
111112
# to handle the raw attribute data to deal with custom clusters.
112113
logging.getLogger("chip.clusters.Attribute").setLevel(logging.CRITICAL)
114+
if not logging.getLogger().isEnabledFor(logging.DEBUG):
115+
# (temporary) raise the log level of zeroconf as its a logs an annoying
116+
# warning at startup while trying to bind to a loopback IPv6 interface
117+
logging.getLogger("zeroconf").setLevel(logging.ERROR)
113118

114119

115120
def main() -> None:

0 commit comments

Comments
 (0)