Skip to content

Commit

Permalink
chore: Update log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioGasquez committed Oct 11, 2023
1 parent 755df2f commit 83c73d3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ use crate::{emoji, error::Error};
use directories::BaseDirs;
use log::info;
#[cfg(windows)]
use log::warn;
#[cfg(windows)]
use std::env;
use std::{
fs::File,
Expand Down Expand Up @@ -99,7 +101,7 @@ pub fn export_environment(export_file: &Path) -> Result<(), Error> {
#[cfg(unix)]
if cfg!(unix) {
println!(
"\n\t{} To get started you need to set up some environment variables by running: '. {}'",
"\n\t{} To get started, you need to set up some environment variables by running: '. {}'",
emoji::INFO,
export_file.display()
);
Expand Down
2 changes: 1 addition & 1 deletion src/toolchain/gcc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ pub fn get_gcc_name(target: &Target) -> String {

/// Checks if the toolchain is pressent, if present uninstalls it.
pub fn uninstall_gcc_toolchains(toolchain_path: &Path) -> Result<(), Error> {
info!("{} Uninstalling GCC toolchain", emoji::WRENCH);
info!("{} Uninstalling GCC", emoji::WRENCH);

let gcc_toolchains = vec![ESP32_GCC, ESP32S2_GCC, ESP32S3_GCC, RISCV_GCC];

Expand Down
2 changes: 1 addition & 1 deletion src/toolchain/llvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl Installable for Llvm {
self.path.to_str().unwrap()
);
} else {
info!("{} Installing Xtensa elf Clang", emoji::WRENCH);
info!("{} Installing Xtensa LLVM", emoji::WRENCH);
download_file(
self.repository_url.clone(),
"idf_tool_xtensa_elf_clang.tar.xz",
Expand Down
4 changes: 2 additions & 2 deletions src/toolchain/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ pub async fn download_file(
}
"gz" => {
info!(
"{} Uncompressing tar.gz file to '{}'",
"{} Extracting tar.gz file to '{}'",
emoji::WRENCH,
output_directory
);
Expand All @@ -120,7 +120,7 @@ pub async fn download_file(
}
"xz" => {
info!(
"{} Uncompressing tar.xz file to '{}'",
"{} Extracting tar.xz file to '{}'",
emoji::WRENCH,
output_directory
);
Expand Down
2 changes: 1 addition & 1 deletion src/toolchain/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ impl RiscVTarget {
impl Installable for RiscVTarget {
async fn install(&self) -> Result<Vec<String>, Error> {
info!(
"{} Installing RISC-V targets ('riscv32imc-unknown-none-elf' and 'riscv32imac-unknown-none-elf') for '{}' toolchain",
"{} Installing RISC-V Rust targets ('riscv32imc-unknown-none-elf' and 'riscv32imac-unknown-none-elf') for '{}' toolchain",
emoji::WRENCH,
&self.nightly_version
);
Expand Down

0 comments on commit 83c73d3

Please sign in to comment.