From f7a7cbfd4b9e72996ed3c747b14ba921f815bf6d Mon Sep 17 00:00:00 2001 From: Leynos Date: Sun, 10 Aug 2025 14:37:06 +0100 Subject: [PATCH 1/2] Use tracing for subcommand logs --- src/runner.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runner.rs b/src/runner.rs index ff170246..a9003020 100644 --- a/src/runner.rs +++ b/src/runner.rs @@ -86,11 +86,11 @@ pub fn run(cli: &Cli) -> Result<()> { Ok(()) } Commands::Clean => { - println!("Clean requested"); + info!("Clean requested"); Ok(()) } Commands::Graph => { - println!("Graph requested"); + info!("Graph requested"); Ok(()) } } From 10a92e7db4d9b1ed255edbcf1615e06ff42d7027 Mon Sep 17 00:00:00 2001 From: Leynos Date: Wed, 13 Aug 2025 08:58:18 +0100 Subject: [PATCH 2/2] Log subcommand usage with structured fields --- src/runner.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runner.rs b/src/runner.rs index a9003020..f0aef4d5 100644 --- a/src/runner.rs +++ b/src/runner.rs @@ -86,11 +86,11 @@ pub fn run(cli: &Cli) -> Result<()> { Ok(()) } Commands::Clean => { - info!("Clean requested"); + info!(target: "netsuke::subcommand", subcommand = "clean", "Subcommand requested"); Ok(()) } Commands::Graph => { - info!("Graph requested"); + info!(target: "netsuke::subcommand", subcommand = "graph", "Subcommand requested"); Ok(()) } }