pull the code itself

master
rascul 2 years ago
parent 486e5e3aa8
commit d689505311

@ -121,11 +121,19 @@ fn run_loop(procs: Vec<Proc>, holds: Option<i8>, poll: Poll, signals: Signals) -
} }
// process exited // process exited
Ok(ProcessEvent::Exit(status)) => { Ok(ProcessEvent::Exit(status)) => {
info!( if let Some(code) = status.code() {
"[{}] exited with status {}", info!(
&proc.app.name.yellow(), "[{}] exited with code {}",
status &proc.app.name.yellow(),
); code
);
} else {
info!(
"[{}] exited with unknown code",
&proc.app.name.yellow()
);
}
let hold = proc.app.hold.unwrap_or(false); let hold = proc.app.hold.unwrap_or(false);
if proc.app.check_restart(status) { if proc.app.check_restart(status) {
if let Ok(p) = restart_app(proc) { if let Ok(p) = restart_app(proc) {

Loading…
Cancel
Save