Skip to content

Commit

Permalink
chore: improve -vv logging (#8910)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehulkar authored Aug 2, 2024
1 parent 843e062 commit fefcf5a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
10 changes: 9 additions & 1 deletion crates/turborepo-lib/src/run/scope/change_detector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,15 @@ impl<'a> GitChangeDetector for ScopeChangeDetector<'a> {
}

let lockfile_contents = self.get_lockfile_contents(from_ref, &changed_files);
debug!("changed_files: {changed_files:?}");

debug!(
"changed files: {:?}",
&changed_files
.iter()
.map(|x| x.to_string())
.collect::<Vec<String>>()
);

match self
.change_mapper
.changed_packages(changed_files, lockfile_contents)?
Expand Down
2 changes: 1 addition & 1 deletion crates/turborepo-repository/src/package_json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ impl From<RawPnpmConfig> for PnpmConfig {

impl PackageJson {
pub fn load(path: &AbsoluteSystemPath) -> Result<PackageJson, Error> {
tracing::debug!("loading package.json from {}", path);
tracing::trace!("loading package.json from {}", path);
let contents = path.read_to_string()?;
Self::load_from_str(&contents, path.as_str())
}
Expand Down
4 changes: 2 additions & 2 deletions crates/turborepo-telemetry/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use chrono::{DateTime, Utc};
pub use config::{Config, ConfigError, File, FileFormat};
use serde::{Deserialize, Serialize};
use sha2::{Digest, Sha256};
use tracing::{debug, error};
use tracing::{error, trace};
use turbopath::{AbsoluteSystemPath, AbsoluteSystemPathBuf};
use turborepo_dirs::config_dir;
use turborepo_ui::{color, BOLD, GREY, UI, UNDERLINE};
Expand Down Expand Up @@ -67,7 +67,7 @@ impl TelemetryConfig {
}

pub fn new(config_path: AbsoluteSystemPathBuf) -> Result<TelemetryConfig, ConfigError> {
debug!("Telemetry config path: {}", config_path);
trace!("Telemetry config path: {}", config_path);
if !config_path.exists() {
write_new_config(&config_path)?;
}
Expand Down

0 comments on commit fefcf5a

Please sign in to comment.