-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stack trace being created during successful validate execution #380
Comments
@jordanpadams Do you have a particular test case that you'd seen this behavior? I am not able to reproduce the error you'd mentioned. |
Hi @jordanpadams and @qchaupds it would be good to clarify exactly what is expected. #344 discusses the generation of the log during successful validation, but from @jordanpadams's description above, I would not expect the log to be generated with validation failure - since this is not an application error, but application success ;-) As in that linked ticket, one simple example is to mis-name the data file referenced in the label (e.g. referenced in a Table_Delimited or other class), which results in |
… optional with new command line parameter --enable-stack-printing 1. Add test resource :src/test/resources/github379 2. Add test resource :src/test/resources/github380 (Directory is required due to quirkiness with behave) 3. Add logic to enable stack printing :src/main/java/gov/nasa/pds/tools/util/FileService.java 4. Add house keeping of stackPrintingFlag variable :src/main/java/gov/nasa/pds/tools/util/FlagsUtil.java 5. Fix bug with printStackTraceToFile(0 function :src/main/java/gov/nasa/pds/tools/validate/rule/pds4/TableDataContentValidationRule.java 6. Add parsing ENABLE_STACK_PRINTING parameter :src/main/java/gov/nasa/pds/validate/ValidateLauncher.java 7. Add ENABLE_STACK_PRINTING parameter :src/main/java/gov/nasa/pds/validate/commandline/options/Flag.java 8. Add ENABLE_STACK_PRINTING option :src/main/java/gov/nasa/pds/validate/commandline/options/FlagOptions.java 9. Add tests for github379 and github380 :src/test/resources/features/validate.feature Refs: #379 FileService:printStackTraceToFile:ERROR when validating a product with overlapping fields #380 stack trace being created during successful validate execution
1. Add setSeverity() to 0 when --debug-mode is used at command line :src/main/java/gov/nasa/pds/validate/ValidateLauncher.java 2. Modify --enable-stack-printing to --debug-mode :src/main/java/gov/nasa/pds/validate/commandline/options/FlagOptions.java 3. Modify --enable-stack-printing to --debug-mode :src/test/resources/features/validate.feature Refs: #379 FileService:printStackTraceToFile:ERROR when validating a product with overlapping fields #380 stack trace being created during successful validate execution
closed per #385 |
🐛 Describe the bug
Follow-on to #344, this comment and #379, the stack trace output file is causing numerous issues.
🕵️ Expected behavior
stack trace only outputs when a fatal error occurs or uncaught exception.
📚 Version of Software Used
v2.0.7
⚙️ Engineering Details
The text was updated successfully, but these errors were encountered: