Skip to content

Commit 92645eb

Browse files
committed
Use milliseconds in log time stamp
This can be useful during debugging and performance comparison and aligns with what Home Assistant Core is using.
1 parent a63cfab commit 92645eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

matter_server/server/__main__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@
102102

103103

104104
def _setup_logging() -> None:
105-
log_fmt = "%(asctime)s (%(threadName)s) %(levelname)s [%(name)s] %(message)s"
105+
log_fmt = (
106+
"%(asctime)s.%(msecs)03d (%(threadName)s) %(levelname)s [%(name)s] %(message)s"
107+
)
106108
custom_level_style = {
107109
**coloredlogs.DEFAULT_LEVEL_STYLES,
108110
"chip_automation": {"color": "green", "faint": True},

0 commit comments

Comments
 (0)