Skip to content

Commit ced5987

Browse files
committed
fix: line matcher should account for system timestamps
Otherwise it just wouldn't match for any lines that used system timestamps, so print filter wouldn't be functional.
1 parent 52e1bee commit ced5987

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esp_idf_monitor/base/line_matcher.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class LineMatcher(object):
2323
def __init__(self, print_filter):
2424
# type: (str) -> None
2525
self._dict = dict()
26-
self._re = re.compile(r'^(?:\033\[[01];?[0-9]+m?)?([EWIDV]) \([0-9]+\) ([^:]+): ')
26+
self._re = re.compile(r'^(?:\033\[[01];?[0-9]+m?)?([EWIDV]) (?:\([0-9]+\)|\([0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}\)) ([^:]+): ')
2727
items = print_filter.split()
2828
if len(items) == 0:
2929
self._dict['*'] = self.LEVEL_V # default is to print everything

0 commit comments

Comments
 (0)