From 9739f2805d0eba4d18409de6f56791ec2adba985 Mon Sep 17 00:00:00 2001 From: rascul Date: Thu, 21 Jul 2022 17:49:11 -0500 Subject: [PATCH] rustfmt --- src/run.rs | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/run.rs b/src/run.rs index 2291bd9..9fcb96a 100644 --- a/src/run.rs +++ b/src/run.rs @@ -66,7 +66,7 @@ fn process_event_data(channel: StdioChannel, data: String, app_name: &str) { StdioChannel::Stderr => "stderr", }; - info!("[{}] {}: {}", app_name, c, data.trim_end()); + info!("[{}] {}: {}", app_name, c, data.trim_end()); } /// run the main loop until out of holds @@ -102,15 +102,29 @@ fn run_loop(procs: Vec, holds: Option, poll: Poll, signals: Signals) - } // error reading stdout or stderr Ok(ProcessEvent::IoError(channel, e)) => { - error!("[{}] io error on {:?}: {:?}", &proc.app.name.yellow(), channel, e) + error!( + "[{}] io error on {:?}: {:?}", + &proc.app.name.yellow(), + channel, + e + ) } // error doing utf8 translation Ok(ProcessEvent::Utf8Error(channel, e)) => { - error!("[{}] utf8 error on {:?}: {:?}", &proc.app.name.yellow(), channel, e) + error!( + "[{}] utf8 error on {:?}: {:?}", + &proc.app.name.yellow(), + channel, + e + ) } // process exited Ok(ProcessEvent::Exit(status)) => { - info!("[{}] exited with status {}", &proc.app.name.yellow(), status); + info!( + "[{}] exited with status {}", + &proc.app.name.yellow(), + status + ); let hold = proc.app.hold.unwrap_or(false); if proc.app.check_restart(status) { if let Ok(p) = restart_app(proc) {