We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a93b2a commit fa1a21bCopy full SHA for fa1a21b
rust/extractor/src/translate/base.rs
@@ -210,6 +210,14 @@ impl<'a> Translator<'a> {
210
full_message: String,
211
location: (LineCol, LineCol),
212
) {
213
+ let severity = if self.source_kind == SourceKind::Library {
214
+ match severity {
215
+ DiagnosticSeverity::Error => DiagnosticSeverity::Info,
216
+ _ => DiagnosticSeverity::Debug,
217
+ }
218
+ } else {
219
+ severity
220
+ };
221
let (start, end) = location;
222
dispatch_to_tracing!(
223
severity,
0 commit comments