Skip to content

Commit

Permalink
🔇 Remove useless logs
Browse files Browse the repository at this point in the history
  • Loading branch information
RemiBardon committed Aug 12, 2024
1 parent 50392b7 commit 6a3e637
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/helpers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ pub fn used_profiles<'a>() -> &'a HashSet<String> {
return profiles;
}

debug!("Reading used profiles…");
trace!("Reading used profiles…");
let acc: &'static mut HashSet<String> = Box::leak(Box::new(HashSet::new()));

for data_file in find_data_files() {
trace!("Reading <{}>…", data_file.display());
// trace!("Reading <{}>…", data_file.display());

// Make sure this generator isn't broken (could be replaced by unit tests)
let html_file = html_file(&data_file).unwrap();
debug!("{}", html_file.display());
// let html_file = html_file(&data_file).unwrap();
// trace!("{}", html_file.display());

let read_allowed = read_allowed(&data_file).unwrap();
debug!(" read_allowed: {:?}", read_allowed);
// trace!(" read_allowed: {:?}", read_allowed);

// Store new profiles
read_allowed.iter().for_each(|p| {
Expand Down
10 changes: 5 additions & 5 deletions src/orangutan-server/src/routes/main_route.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ async fn handle_request(
p = allowed_profile.clone(),
now = SystemTime::now()
);
trace!(
"Running authorizer '{}' on '{}'…",
authorizer.dump_code(),
biscuit.authorizer().unwrap().dump_code()
);
// trace!(
// "Running authorizer '{}' on '{}'…",
// authorizer.dump_code(),
// biscuit.authorizer().unwrap().dump_code()
// );
if biscuit.authorize(&authorizer).is_ok() {
profile = Some(allowed_profile);
}
Expand Down

0 comments on commit 6a3e637

Please sign in to comment.