diff options
Diffstat (limited to 'buildscripts')
-rwxr-xr-x | buildscripts/errorcodes.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/buildscripts/errorcodes.py b/buildscripts/errorcodes.py index d56fadb009a..1cbaba1f04e 100755 --- a/buildscripts/errorcodes.py +++ b/buildscripts/errorcodes.py @@ -42,13 +42,15 @@ list_files = False # pylint: disable=invalid-name def parse_source_files(callback): """Walk MongoDB sourcefiles and invoke a callback for each AssertLocation found.""" - quick = [r"assert", r"Exception", r"ErrorCodes::Error"] + quick = [r"assert", r"Exception", r"ErrorCodes::Error", r"LOGV2"] patterns = [ re.compile(r"(?:u|m(?:sg)?)asser(?:t|ted)(?:NoTrace)?\s*\(\s*(\d+)", re.MULTILINE), re.compile(r"(?:DB|Assertion)Exception\s*[({]\s*(\d+)", re.MULTILINE), re.compile(r"fassert(?:Failed)?(?:WithStatus)?(?:NoTrace)?(?:StatusOK)?\s*\(\s*(\d+)", re.MULTILINE), + re.compile(r"LOGV2(?:_INFO|_WARNING|_ERROR|_FATAL|_DEBUG)?(?:_OPTIONS)?\s*\(\s*(\d+)", + re.MULTILINE), re.compile(r"ErrorCodes::Error\s*[({]\s*(\d+)", re.MULTILINE) ] |