-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: improve -vv logging #8910
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is call N times in a monorepo with N packages, making |
||
let contents = path.read_to_string()?; | ||
Self::load_from_str(&contents, path.as_str()) | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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}; | ||
|
@@ -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); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is being called a billion times becuase |
||
if !config_path.exists() { | ||
write_new_config(&config_path)?; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed_files os an vector of
AnchoredSystemPathBuf
, updating the log to remove the type info so it's a little eaiser to read