Consistently write log messages with capitalized first word (#11111)

This commit is contained in:
Zanie Blue
2025-01-30 12:56:46 -06:00
committed by GitHub
parent ee31e1f11b
commit 5c0fdfd7ce
5 changed files with 47 additions and 47 deletions
+3 -3
View File
@@ -464,7 +464,7 @@ impl GitCheckout {
fn reset(&self) -> Result<()> {
let ok_file = self.repo.path.join(CHECKOUT_READY_LOCK);
let _ = paths::remove_file(&ok_file);
debug!("reset {} to {}", self.repo.path.display(), self.revision);
debug!("Reset {} to {}", self.repo.path.display(), self.revision);
// Perform the hard reset.
ProcessBuilder::new(GIT.as_ref()?)
@@ -508,7 +508,7 @@ fn fetch(
Ok(FastPathRev::NeedsFetch(rev)) => Some(rev),
Ok(FastPathRev::Indeterminate) => None,
Err(e) => {
debug!("failed to check github {:?}", e);
debug!("Failed to check GitHub {:?}", e);
None
}
};
@@ -589,7 +589,7 @@ fn fetch(
// Stop after the first success and log failures
match fetch_result {
Err(ref err) => {
debug!("failed to fetch refspec `{refspec}`: {err}");
debug!("Failed to fetch refspec `{refspec}`: {err}");
Some(fetch_result)
}
Ok(()) => None,