Allow error and warning messages received from nuix to be ignored
Story
- Java/nuix error and warning messages that are output to the stdin are currently ignored using hard-coded regex:
- These two items should be configurable to cater for custom configuration in environments
- Allows technicians to configure warnings and errors that can be ignored, improving application resiliency
Implementation specifics
something like this?
{
"connectors": {
"nuix": {
"IgnoreWarningsRegex": [
"\(eval\):9: warning:(?<text>.+)"
]
"IgnoreErrorsRegex": [
"ERROR\s*(?<text>.+)"
]
}
}
}
Errors in Nuix 9 which are currently not captured by the above regex:
> .\Reductech.EDR-v0.4.0\EDR.exe -s "NuixDoesCaseExist 'D:\Antony\TestCases\Nuix90Case'"
2021/02/17 10:46:06.359 ERROR Could not parse 'OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0' as ConnectionOutput - NuixDoesCaseExist