Skip to content

Commit

Permalink
CLI logs
Browse files Browse the repository at this point in the history
  • Loading branch information
pwalski committed Oct 27, 2023
1 parent d4814c7 commit 09fc708
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ async fn main() -> anyhow::Result<()> {
start_logger().expect("Failed to start logging");
log::warn!("Using fallback logging due to an error: {:?}", error);
};
log::debug!("CLI args: {:?}", std::env::args_os());
log::debug!("Raw CLI args: {:?}", std::env::args_os());
let cli = match Cli::try_parse() {
Ok(cli) => cli,
Err(err) => {
Expand Down Expand Up @@ -238,6 +238,7 @@ async fn run<T: process::Runtime + Clone + Unpin + 'static>(cli: Cli) -> anyhow:
});
}
ExeScriptCommand::Start { args, .. } => {
log::debug!("Start cmd args: {args:?}");
let args = process::RuntimeArgs::new(args).map_err(|e| {
RpcMessageError::Activity(format!("invalid args: {}", e))
})?;
Expand Down Expand Up @@ -295,7 +296,7 @@ async fn run<T: process::Runtime + Clone + Unpin + 'static>(cli: Cli) -> anyhow:
}
cmd => {
return Err(RpcMessageError::Activity(format!(
"invalid command for mining exe-unit: {:?}",
"invalid command for ai runtime: {:?}",
cmd
)))
}
Expand Down

0 comments on commit 09fc708

Please sign in to comment.