ignore injected errors in old fdb versions
This commit is contained in:
parent
f88b8e2351
commit
ad2888423c
|
@ -569,6 +569,9 @@ class Summary:
|
||||||
self.handler.add_handler(('Severity', '30'), parse_warning)
|
self.handler.add_handler(('Severity', '30'), parse_warning)
|
||||||
|
|
||||||
def parse_error(attrs: Dict[str, str]):
|
def parse_error(attrs: Dict[str, str]):
|
||||||
|
if 'ErrorIsInjectedFault' in attrs and attrs['ErrorIsInjectedFault'].lower() in ['1', 'true']:
|
||||||
|
# ignore injected errors. In newer fdb versions these will have a lower severity
|
||||||
|
return
|
||||||
self.errors += 1
|
self.errors += 1
|
||||||
self.error = True
|
self.error = True
|
||||||
if self.errors > config.max_errors:
|
if self.errors > config.max_errors:
|
||||||
|
|
Loading…
Reference in New Issue