Skip to content

Commit

Permalink
Better output display
Browse files Browse the repository at this point in the history
  • Loading branch information
BeichenY1 committed Apr 13, 2024
1 parent 9b4d2bf commit 8ab91e2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,6 @@ impl Src {
}
None
} else {
log(LogLevel::Error, &format!(" Error: {}", &self.name));
log(LogLevel::Error, &format!(" Command: {}", &cmd));
log(
LogLevel::Error,
Expand Down
2 changes: 1 addition & 1 deletion src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ fn build_ruxmusl(build_config: &BuildConfig, os_config: &OSConfig) {

let compiler = build_config.compiler.read().unwrap();
let mut cmd = format!(
"{}/configure --prefix=./install --exec-prefix=./ --syslibdir=./install/lib",
"{}/configure --prefix=./install --exec-prefix=./ --syslibdir=./install/lib --disable-warnings",
ruxmusl_abs_path_str
);
if build_config.app.is_empty() {
Expand Down
10 changes: 5 additions & 5 deletions src/utils/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ pub fn log(level: LogLevel, message: &str) {
init_log_level();
});
let level_str = match level {
LogLevel::Debug => "[DEBUG]".purple(),
LogLevel::Info => "[INFO]".blue(),
LogLevel::Log => "[LOG]".green(),
LogLevel::Warn => "[WARN]".yellow(),
LogLevel::Error => "[ERROR]".red(),
LogLevel::Debug => "[DEBUG]".purple().bold(),
LogLevel::Info => "[INFO]".blue().bold(),
LogLevel::Log => "[LOG]".green().bold(),
LogLevel::Warn => "[WARN]".yellow().bold(),
LogLevel::Error => "[ERROR]".red().bold(),
};
// Use read lock to check log level
if level >= *LOG_LEVEL.read().unwrap() {
Expand Down

0 comments on commit 8ab91e2

Please sign in to comment.