Skip to content

Commit cf8ff79

Browse files
committed
Merge branch 'master' of https://github.com/stackmuncher/stm_app
2 parents ef91704 + 3569556 commit cf8ff79

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

stackmuncher_lib/src/file_type.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use regex::Regex;
22
use serde::Deserialize;
3-
use tracing::{debug, error, warn};
3+
use tracing::{debug, error};
44

55
#[derive(Deserialize, Clone, Debug)]
66
pub struct FileTypeMatch {
@@ -109,9 +109,9 @@ impl FileType {
109109
}
110110

111111
// otherwise return None
112-
if best_match.is_none() {
113-
warn!("No matching muncher found for {}.", file_name_with_path);
114-
}
112+
// if best_match.is_none() {
113+
// warn!("No matching muncher found for {}.", file_name_with_path);
114+
// }
115115
best_match
116116
}
117117
}

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)