edit log parse regex (#10117)

This commit is contained in:
Nikolay Tyukaev 2022-02-04 20:15:26 +03:00 committed by GitHub
parent 12a310636d
commit 1abc6e2a16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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):
"""