diff --git a/src/parser.rs b/src/parser.rs index e998462d6..98da941cc 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -10,7 +10,7 @@ use std::path::Path; use std::str; use std::sync::Arc; -use log::error; +use log::{error, warn}; use quick_xml::encoding::Decoder; use quick_xml::events::attributes::AttrError; @@ -266,7 +266,7 @@ pub fn parse_lcov( .map(|&c| c as char) .collect(); if !duplicated_error_logged && cur_functions.contains_key(&f_name) { - error!( + warn!( "FN '{}' duplicated for '{}' in a lcov file", f_name, cur_file.as_ref().unwrap()