Skip to content

Commit

Permalink
StatusLogger: Add function to log warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hpjansson committed May 7, 2021
1 parent fdcb575 commit c1d1bfb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/statuslogger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ impl StatusLogger
io::stdout().flush().unwrap();
}

pub fn log_warning(&mut self, message: &str)
{
eprint!("\r\x1b[1;33m{}: {}\x1b[0m\x1b[K\n", self.repo_name, message);
self.last_timestamp = 0;
}

pub fn log_commit(&mut self, commit: &RawCommit)
{
self.n_commits += 1;
Expand Down

0 comments on commit c1d1bfb

Please sign in to comment.