Ruby: reduce number of diagnostic messages with the status_page flag

For now we only report real parse errors and character encoding errors. Warnings about
unexpected or missing nodes in the AST are not reported. These are typically side effects
of earlier parse errors.
This commit is contained in:
Arthur Baars
2023-02-10 18:53:37 +01:00
parent d55e9d5dac
commit ecbd768df4
2 changed files with 22 additions and 20 deletions

View File

@@ -75,7 +75,6 @@ fn main() -> std::io::Result<()> {
main_thread_logger
.message("configuration-error", "Configuration error")
.text(&format!("{}; defaulting to 1 thread.", e))
.status_page()
.severity(diagnostics::Severity::Warning),
);
1
@@ -97,7 +96,6 @@ fn main() -> std::io::Result<()> {
main_thread_logger
.message("configuration-error", "Configuration error")
.text(&format!("{}; using gzip.", e))
.status_page()
.severity(diagnostics::Severity::Warning),
);
trap::Compression::Gzip