node: Make git-daemon errors more apparent

This commit is contained in:
Alexis Sellier 2023-01-30 14:07:31 +01:00
parent 03b94c81a0
commit c1a749e09e
No known key found for this signature in database
1 changed files with 5 additions and 1 deletions

View File

@ -203,7 +203,11 @@ impl<G: Signer + EcSign + 'static> Runtime<G> {
let stderr = daemon.stderr.take().unwrap();
|| {
for line in BufReader::new(stderr).lines().flatten() {
log::debug!(target: "daemon", "{line}");
if line.starts_with("fatal") {
log::error!(target: "daemon", "{line}");
} else {
log::debug!(target: "daemon", "{line}");
}
}
}
})?;