yagit

Yet another static site generator for Git 🙀️

Commit
01d087c3925a3bf15a725a5d4ddefa587745c083
Parent
7071b124b374870f3d7e0f3fe184dcc5ea1d0bf0
Author
Pablo <pablo-pie@riseup.net>
Date

Restyled the log messages (again)

Diffstats

1 files changed, 4 insertions, 4 deletions

Status Name Changes Insertions Deletions
Modified src/log.rs 2 files changed 4 4
diff --git a/src/log.rs b/src/log.rs
@@ -21,7 +21,7 @@ pub(crate) fn log(level: Level, args: &Arguments<'_>, newline: bool) {
   match level {
     Level::Error => {
       let mut stderr = io::stderr();
-      let _ = write!(stderr, "{BOLD_RED}=> ERROR:{RESET} ");
+      let _ = write!(stderr, "{BOLD_RED}ERROR:{RESET} ");
       let _ = if newline {
         writeln!(stderr, "{}", args)
       } else {
@@ -31,7 +31,7 @@ pub(crate) fn log(level: Level, args: &Arguments<'_>, newline: bool) {
     }
     Level::Info => {
       let mut stdout = io::stdout().lock();
-      let _ = write!(stdout, "{BOLD_GREEN}=>{RESET} ");
+      let _ = write!(stdout, "{BOLD_GREEN}INFO:{RESET} ");
       let _ = if newline {
         writeln!(stdout, "{}", args)
       } else {
@@ -41,7 +41,7 @@ pub(crate) fn log(level: Level, args: &Arguments<'_>, newline: bool) {
     }
     Level::Warn => {
       let mut stdout = io::stdout().lock();
-      let _ = write!(stdout, "{BOLD_YELLOW}=> WARNING:{RESET} ");
+      let _ = write!(stdout, "{BOLD_YELLOW}WARNING:{RESET} ");
       let _ = if newline {
         writeln!(stdout, "{}", args)
       } else {
@@ -99,7 +99,7 @@ macro_rules! info_count {
     let mut stdout = io::stdout().lock();
     let _ = write!(
       stdout,
-      "{BOLD_GREEN}[{count:>padding$}/{total}]{RESET} {args}",
+      "{BOLD_GREEN}=> {count:>padding$}/{total}{RESET} {args}",
       count = $count,
       total = $total,
       padding = $crate::log_floor($total),