Skip to content

Commit

Permalink
Turn 'duplicated FN' into a warning rather than an error
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-c committed Nov 12, 2024
1 parent 9cc638b commit a6ed1e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit a6ed1e5

Please sign in to comment.