From 09fc708f1a8c0605ca5c32bf328ae44d5f1466b0 Mon Sep 17 00:00:00 2001 From: Przemyslaw Walski Date: Fri, 27 Oct 2023 06:22:40 +0200 Subject: [PATCH] CLI logs --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3cd04d1..a43df34 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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) => { @@ -238,6 +238,7 @@ async fn run(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)) })?; @@ -295,7 +296,7 @@ async fn run(cli: Cli) -> anyhow: } cmd => { return Err(RpcMessageError::Activity(format!( - "invalid command for mining exe-unit: {:?}", + "invalid command for ai runtime: {:?}", cmd ))) }