Skip to content

Commit c4d0517

Browse files
authored
change log statements to info (#13)
1 parent 166e75a commit c4d0517

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/ownership.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use std::sync::Arc;
2-
use tracing::{debug, instrument};
2+
use tracing::{info, instrument};
33

44
mod file_generator;
55
mod mapper;
@@ -49,7 +49,7 @@ impl Ownership {
4949

5050
#[instrument(level = "debug", skip_all)]
5151
pub fn validate(&self) -> Result<(), ValidatorErrors> {
52-
debug!("validating file ownership");
52+
info!("validating file ownership");
5353
let validator = Validator {
5454
project: self.project.clone(),
5555
mappers: self.mappers(),
@@ -61,7 +61,7 @@ impl Ownership {
6161

6262
#[instrument(level = "debug", skip_all)]
6363
pub fn generate_file(&self) -> String {
64-
debug!("generating codeowners file");
64+
info!("generating codeowners file");
6565
let file_generator = FileGenerator { mappers: self.mappers() };
6666
file_generator.generate_file()
6767
}

src/project.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use error_stack::{Context, Result};
1111
use ignore::Walk;
1212
use rayon::prelude::{IntoParallelIterator, ParallelIterator};
1313
use regex::Regex;
14-
use tracing::{debug, instrument};
14+
use tracing::{info, instrument};
1515

1616
use crate::{config::Config, error_stack_ext::IntoContext};
1717
use glob_match::glob_match;
@@ -137,7 +137,7 @@ impl Context for Error {}
137137
impl Project {
138138
#[instrument(level = "debug", skip_all)]
139139
pub fn build(base_path: &Path, codeowners_file_path: &Path, config: &Config) -> Result<Self, Error> {
140-
debug!(base_path = base_path.to_str(), "scanning project");
140+
info!(base_path = base_path.to_str(), "scanning project");
141141

142142
let mut owned_file_paths: Vec<PathBuf> = Vec::new();
143143
let mut packages: Vec<Package> = Vec::new();
@@ -205,7 +205,7 @@ impl Project {
205205
}
206206
}
207207

208-
debug!(
208+
info!(
209209
owned_file_paths = owned_file_paths.len(),
210210
packages = packages.len(),
211211
teams = teams.len(),
@@ -262,7 +262,7 @@ impl Project {
262262
fn owned_files(owned_file_paths: Vec<PathBuf>) -> Vec<ProjectFile> {
263263
let regexp = Regex::new(r#"^(?:#|//) @team (.*)$"#).expect("error compiling regular expression");
264264

265-
debug!("opening files to read ownership annotation");
265+
info!("opening files to read ownership annotation");
266266

267267
owned_file_paths
268268
.into_par_iter()

0 commit comments

Comments
 (0)