Silence a bucketload of logs (#36534)

Closes #ISSUE

Release Notes:

- Silenced a bunch of logs that were on by default
This commit is contained in:
Conrad Irwin 2025-08-19 20:26:56 -06:00 committed by GitHub
parent b12d862236
commit cac80e2ebd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 23 additions and 38 deletions

View file

@ -143,10 +143,10 @@ impl LicenseDetectionWatcher {
}
async fn is_path_eligible(fs: &Arc<dyn Fs>, abs_path: PathBuf) -> Option<bool> {
log::info!("checking if `{abs_path:?}` is an open source license");
log::debug!("checking if `{abs_path:?}` is an open source license");
// Resolve symlinks so that the file size from metadata is correct.
let Some(abs_path) = fs.canonicalize(&abs_path).await.ok() else {
log::info!(
log::debug!(
"`{abs_path:?}` license file probably deleted (error canonicalizing the path)"
);
return None;
@ -159,11 +159,11 @@ impl LicenseDetectionWatcher {
let text = fs.load(&abs_path).await.log_err()?;
let is_eligible = is_license_eligible_for_data_collection(&text);
if is_eligible {
log::info!(
log::debug!(
"`{abs_path:?}` matches a license that is eligible for data collection (if enabled)"
);
} else {
log::info!(
log::debug!(
"`{abs_path:?}` does not match a license that is eligible for data collection"
);
}