Skip to content

Commit 3569556

Browse files
committed
Stopped logging local import filtering, added trim on kwc
1 parent a3683b9 commit 3569556

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stackmuncher_lib/src/tech.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use super::kwc::{KeywordCounter, KeywordCounterSet};
22
use regex::Regex;
33
use serde::{Deserialize, Serialize};
44
use std::collections::HashSet;
5-
use tracing::{info, trace, warn};
5+
use tracing::{debug, trace, warn};
66

77
/// # PRIVACY REMINDER
88
/// Any additions to this struct should be considered for clean up before submission to stackmuncher.com
@@ -163,7 +163,7 @@ impl Tech {
163163
}
164164

165165
// Python imports may start with . which needs to be removed
166-
let cap = cap.trim_matches('.').to_owned();
166+
let cap = cap.trim_matches('.').trim().to_owned();
167167

168168
// add the counts depending with different factory functions for different Tech fields
169169
kw_counter.increment_counters(kw_counter_factory(cap, 1));
@@ -281,7 +281,7 @@ impl Tech {
281281
// .clone() is necessary to remove the local kwc from the list later
282282
// there should only be a small number of imports per project
283283
local_imports.push(kwc.clone());
284-
info!("Removing local import: {} / {}", kwc.k, full_file_name);
284+
debug!("Removing local import: {} / {}", kwc.k, full_file_name);
285285
break;
286286
}
287287
}

0 commit comments

Comments
 (0)