mirror of
https://github.com/rust-lang/cargo
synced 2024-10-02 22:13:47 +00:00
Downgrade some log messages.
This commit is contained in:
parent
6d19e80192
commit
f0aae40f00
|
@ -6,7 +6,7 @@ use std::path::{Path, PathBuf};
|
|||
use std::sync::Arc;
|
||||
|
||||
use lazycell::LazyCell;
|
||||
use log::info;
|
||||
use log::debug;
|
||||
|
||||
use super::{BuildContext, CompileKind, Context, FileFlavor, Layout};
|
||||
use crate::core::compiler::{CompileMode, CompileTarget, CrateType, FileType, Unit};
|
||||
|
@ -435,7 +435,7 @@ impl<'a, 'cfg: 'a> CompilationFiles<'a, 'cfg> {
|
|||
| CompileMode::Bench
|
||||
| CompileMode::Check { .. } => self.calc_outputs_rustc(unit, bcx)?,
|
||||
};
|
||||
info!("Target filenames: {:?}", ret);
|
||||
debug!("Target filenames: {:?}", ret);
|
||||
|
||||
Ok(Arc::new(ret))
|
||||
}
|
||||
|
|
|
@ -61,7 +61,7 @@ use anyhow::{format_err, Context as _};
|
|||
use cargo_util::ProcessBuilder;
|
||||
use crossbeam_utils::thread::Scope;
|
||||
use jobserver::{Acquired, Client, HelperThread};
|
||||
use log::{debug, info, trace};
|
||||
use log::{debug, trace};
|
||||
use semver::Version;
|
||||
|
||||
use super::context::OutputFile;
|
||||
|
@ -649,7 +649,7 @@ impl<'cfg> DrainState<'cfg> {
|
|||
// If `id` has completely finished we remove it
|
||||
// from the `active` map ...
|
||||
Artifact::All => {
|
||||
info!("end: {:?}", id);
|
||||
trace!("end: {:?}", id);
|
||||
self.finished += 1;
|
||||
if let Some(rustc_tokens) = self.rustc_tokens.remove(&id) {
|
||||
// This puts back the tokens that this rustc
|
||||
|
@ -670,11 +670,11 @@ impl<'cfg> DrainState<'cfg> {
|
|||
// ... otherwise if it hasn't finished we leave it
|
||||
// in there as we'll get another `Finish` later on.
|
||||
Artifact::Metadata => {
|
||||
info!("end (meta): {:?}", id);
|
||||
trace!("end (meta): {:?}", id);
|
||||
self.active[&id].clone()
|
||||
}
|
||||
};
|
||||
info!("end ({:?}): {:?}", unit, result);
|
||||
debug!("end ({:?}): {:?}", unit, result);
|
||||
match result {
|
||||
Ok(()) => self.finish(id, &unit, artifact, cx)?,
|
||||
Err(e) => {
|
||||
|
@ -695,7 +695,7 @@ impl<'cfg> DrainState<'cfg> {
|
|||
self.tokens.push(token);
|
||||
}
|
||||
Message::NeedsToken(id) => {
|
||||
log::info!("queue token request");
|
||||
trace!("queue token request");
|
||||
jobserver_helper.request_token();
|
||||
let client = cx.rustc_clients[&self.active[&id]].clone();
|
||||
self.to_send_clients
|
||||
|
@ -733,7 +733,7 @@ impl<'cfg> DrainState<'cfg> {
|
|||
// listen for a message with a timeout, and on timeout we run the
|
||||
// previous parts of the loop again.
|
||||
let mut events = self.messages.try_pop_all();
|
||||
info!(
|
||||
trace!(
|
||||
"tokens in use: {}, rustc_tokens: {:?}, waiting_rustcs: {:?} (events this tick: {})",
|
||||
self.tokens.len(),
|
||||
self.rustc_tokens
|
||||
|
@ -966,7 +966,7 @@ impl<'cfg> DrainState<'cfg> {
|
|||
let id = JobId(self.next_id);
|
||||
self.next_id = self.next_id.checked_add(1).unwrap();
|
||||
|
||||
info!("start {}: {:?}", id, unit);
|
||||
debug!("start {}: {:?}", id, unit);
|
||||
|
||||
assert!(self.active.insert(id, unit.clone()).is_none());
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ use std::sync::Arc;
|
|||
|
||||
use anyhow::{Context as _, Error};
|
||||
use lazycell::LazyCell;
|
||||
use log::debug;
|
||||
use log::{debug, trace};
|
||||
|
||||
pub use self::build_config::{BuildConfig, CompileMode, MessageFormat};
|
||||
pub use self::build_context::{
|
||||
|
@ -720,7 +720,7 @@ fn rustdoc(cx: &mut Context<'_, '_>, unit: &Unit) -> CargoResult<Work> {
|
|||
if crate_dir.exists() {
|
||||
// Remove output from a previous build. This ensures that stale
|
||||
// files for removed items are removed.
|
||||
log::debug!("removing pre-existing doc directory {:?}", crate_dir);
|
||||
debug!("removing pre-existing doc directory {:?}", crate_dir);
|
||||
paths::remove_dir_all(crate_dir)?;
|
||||
}
|
||||
state.running(&rustdoc);
|
||||
|
@ -1430,9 +1430,9 @@ fn on_stderr_line_inner(
|
|||
}
|
||||
|
||||
if let Ok(artifact) = serde_json::from_str::<ArtifactNotification>(compiler_message.get()) {
|
||||
log::trace!("found directive from rustc: `{}`", artifact.artifact);
|
||||
trace!("found directive from rustc: `{}`", artifact.artifact);
|
||||
if artifact.artifact.ends_with(".rmeta") {
|
||||
log::debug!("looks like metadata finished early!");
|
||||
debug!("looks like metadata finished early!");
|
||||
state.rmeta_produced();
|
||||
}
|
||||
return Ok(false);
|
||||
|
@ -1452,7 +1452,7 @@ fn on_stderr_line_inner(
|
|||
if let Ok(JobserverNotification { jobserver_event }) =
|
||||
serde_json::from_str::<JobserverNotification>(compiler_message.get())
|
||||
{
|
||||
log::info!(
|
||||
trace!(
|
||||
"found jobserver directive from rustc: `{:?}`",
|
||||
jobserver_event
|
||||
);
|
||||
|
|
|
@ -347,7 +347,7 @@ impl<'a> GitCheckout<'a> {
|
|||
return update_submodules(&self.repo, cargo_config);
|
||||
|
||||
fn update_submodules(repo: &git2::Repository, cargo_config: &Config) -> CargoResult<()> {
|
||||
info!("update submodules for: {:?}", repo.workdir().unwrap());
|
||||
debug!("update submodules for: {:?}", repo.workdir().unwrap());
|
||||
|
||||
for mut child in repo.submodules()? {
|
||||
update_submodule(repo, &mut child, cargo_config).with_context(|| {
|
||||
|
|
Loading…
Reference in a new issue