From df6c23d1787fdfdeac31803bd119f5a59b9409cb Mon Sep 17 00:00:00 2001 From: Mirko von Leipzig Date: Mon, 16 Sep 2024 13:14:48 +0200 Subject: [PATCH] Separate entry for debug --- bin/node/src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/node/src/main.rs b/bin/node/src/main.rs index c7153840..56990770 100644 --- a/bin/node/src/main.rs +++ b/bin/node/src/main.rs @@ -143,11 +143,8 @@ fn long_version() -> String { features = "None"; } - let mut opt_level = env!("VERGEN_CARGO_OPT_LEVEL").to_owned(); + let opt_level = env!("VERGEN_CARGO_OPT_LEVEL").to_owned(); let debug = env!("VERGEN_CARGO_DEBUG"); - if debug == "true" { - opt_level = format!("{opt_level}-debug"); - } format!( "{version} @@ -159,6 +156,7 @@ rust version: {rust_version} target arch: {target} host arch: {host} opt-level: {opt_level} +debug: {debug} " ) }