fix(tui): remove logging from inside ui loop

This commit is contained in:
Paul Campbell 2024-08-31 19:26:20 +01:00
parent 2b09872131
commit 8550adf79e

View file

@ -63,7 +63,6 @@ impl From<LogLine> for Line<'_> {
let pre = caps["pre"].to_owned(); let pre = caps["pre"].to_owned();
let hash = caps["hash"].to_owned(); let hash = caps["hash"].to_owned();
let message = caps["message"].to_owned(); let message = caps["message"].to_owned();
info!(branches=?caps["branches"], "raw branches");
let mut branches = BRANCHES let mut branches = BRANCHES
.captures_iter(&caps["branches"]) .captures_iter(&caps["branches"])
.map(|captures| captures["branch"].to_owned()) .map(|captures| captures["branch"].to_owned())
@ -81,7 +80,6 @@ impl From<LogLine> for Line<'_> {
} else { } else {
// line withbranches // line withbranches
let mut spans = vec![pre.into(), " ".into(), hash.into(), " ".into()]; let mut spans = vec![pre.into(), " ".into(), hash.into(), " ".into()];
info!(?branches, "matched branch list");
branches.sort(); branches.sort();
branches branches
.into_iter() .into_iter()