mirror of
https://github.com/SpaceManiac/SpacemanDMM.git
synced 2025-12-23 05:36:47 +00:00
Decrease verbosity of debug output
This commit is contained in:
parent
675d1c847a
commit
2e95f368f9
2 changed files with 3 additions and 3 deletions
|
|
@ -59,7 +59,6 @@ impl Launched {
|
|||
let code = match wait {
|
||||
Ok(status) => {
|
||||
let code = status.code();
|
||||
debug_output!(in seq2, "[launched] child exited in state {:?} with code {:?}", *state, code);
|
||||
match code {
|
||||
Some(code) => output!(in seq2, "[launched] Child exited with code {:#x}.", code),
|
||||
None => output!(in seq2, "Child exited due to signal."),
|
||||
|
|
@ -67,8 +66,8 @@ impl Launched {
|
|||
code.unwrap_or(-1)
|
||||
}
|
||||
Err(err) => {
|
||||
debug_output!(in seq2, "[launched] wait() errored in state {:?}: {:?}", *state, err);
|
||||
output!(in seq2, "[launched] Lost track of child process, this may be a SpacemanDMM bug.\n - {}", err);
|
||||
debug_output!(in seq2, " - state was {:?}\n - more error details: {:?}", *state, err);
|
||||
-1
|
||||
}
|
||||
};
|
||||
|
|
@ -100,6 +99,7 @@ impl Launched {
|
|||
false => Err(std::io::Error::last_os_error()),
|
||||
}
|
||||
}
|
||||
State::Exited => Ok(()),
|
||||
_other => {
|
||||
debug_output!(in self.seq, "[launched] kill no-op in state {:?}", _other);
|
||||
Ok(())
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ macro_rules! handle_request {
|
|||
let result: <$what as Request>::Result = self.$what(params)?;
|
||||
Ok(serde_json::to_value(result).expect("encode problem"))
|
||||
} else)* {
|
||||
debug_output!(in self.seq, "[main] NYI: {} -> {:?}", request.command, request.arguments);
|
||||
//debug_output!(in self.seq, "[main] NYI: {} -> {:?}", request.command, request.arguments);
|
||||
Err(format!("Request NYI: {}", request.command).into())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue