Skip to content

Commit

Permalink
Move user-facing messages to from log to print
Browse files Browse the repository at this point in the history
  • Loading branch information
tamird committed Oct 13, 2024
1 parent 32f914a commit 940a60e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions {{project-name}}/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ use clap::Parser;
{% endif -%}

#[rustfmt::skip]
use log::{debug, info, warn};
use log::{debug, warn};
use tokio::signal;

{% if program_types_with_opts contains program_type -%}
Expand Down Expand Up @@ -205,9 +205,9 @@ async fn main() -> anyhow::Result<()> {
program.attach("{{tracepoint_name}}")?;
{%- endcase %}

info!("Waiting for Ctrl-C...");
println!("Waiting for Ctrl-C...");
signal::ctrl_c().await?;
info!("Exiting...");
println!("Exiting...");

Ok(())
}

0 comments on commit 940a60e

Please sign in to comment.