edit log parse regex (#10117)

This commit is contained in:
Nikolay Tyukaev authored and GitHub committed 2022-02-04 20:15:26 +03:00
1 parent 12a310636d
commit 1abc6e2a16
1 file changed
+2 -2
+2 -2
View File
@@ -19,8 +19,8 @@ class LogParser:
)
# a regex that is used to match log lines containing a filepath,
# a line number, and an error or warning
regex = r'(.*?):?([0-9]*):? ?(warning|error): (.+)'
# a line number, and an error,warning or critical
regex = r'^(?!\*)(.*?):?([0-9]*):? ?(warning|error|critical): (.+)'
def __init__(self, log: Path):
"""