diff --git a/scripts/eddn-report-log-errors b/scripts/eddn-report-log-errors index a322e57..46a0361 100755 --- a/scripts/eddn-report-log-errors +++ b/scripts/eddn-report-log-errors @@ -75,7 +75,10 @@ def process_file(input_file: str) -> None: 'https://eddn.edcd.io/schemas/outfitting/2', ): # Reported via Discord PM to Robby 2022-01-07 - if matches.group('err_msg') != 'Failed Validation "[]"': + if matches.group('err_msg') == 'Failed Validation "[]"': + pass + + else: print(line) else: @@ -103,7 +106,6 @@ def process_file(input_file: str) -> None: else: print(line) - else: print(line) @@ -114,10 +116,13 @@ def process_file(input_file: str) -> None: elif matches.group('software_name').startswith('E:D Market Connector'): # https://github.com/EDCD/EDMarketConnector/releases/latest - if software_version >= semantic_version.Version.coerce('5.2.4'): + if software_version >= semantic_version.Version.coerce('5.3.0'): if matches.group('schema_ref') == 'https://eddn.edcd.io/schemas/codexentry/1': # - if matches.group('err_msg') != 'Failed Validation "[]"': + if matches.group('err_msg') == 'Failed Validation "[]"': + pass + + else: print(matches.group('err_msg')) print(line) @@ -142,14 +147,16 @@ def process_file(input_file: str) -> None: # pass - elif matches.group('schema_ref') == 'https://eddn.edcd.io/schemas/approachsettlement/1': - if matches.group('err_msg') == 'Failed Validation "[]"': - # - pass + else: + print(line) - elif matches.group('err_msg') == 'Failed Validation "[]"': + elif matches.group('schema_ref') == 'https://eddn.edcd.io/schemas/approachsettlement/1': + if matches.group('err_msg') == 'Failed Validation "[]"': # pass + + else: + print(line) else: print(line) @@ -158,10 +165,15 @@ def process_file(input_file: str) -> None: # if software_version >= semantic_version.Version.coerce('3.7.7888.21039'): if matches.group('schema_ref') == 'https://eddn.edcd.io/schemas/commodity/3': + if matches.group('err_msg') == 'Failed Validation "[]"': # Reported via Frontier forums: - if matches.group('err_msg') != 'Failed Validation "[]"': - print(matches.group('err_msg')) + pass + + else: print(line) + + else: + print(line) elif matches.group('software_name') == 'EDSM': # It's in-browser, no public source/releases @@ -172,8 +184,10 @@ def process_file(input_file: str) -> None: if not matches.group('err_msg').startswith( 'Failed Validation "[ None: if matches.group('schema_ref') == 'https://eddn.edcd.io/schemas/journal/1': if matches.group('journal_event') == 'Docked': # - if not matches.group('err_msg').startswith( + if matches.group('err_msg').startswith( 'Failed Validation "[