From b6c5ef8041e96bd75476ad5682c68311453a2583 Mon Sep 17 00:00:00 2001 From: teor Date: Mon, 26 Apr 2021 12:19:55 +1000 Subject: [PATCH] Add VERGEN_CARGO_PROFILE to the panic env vars Some panics should only happen on debug profiles. --- zebrad/src/application.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zebrad/src/application.rs b/zebrad/src/application.rs index 570f8b4c..afce0e48 100644 --- a/zebrad/src/application.rs +++ b/zebrad/src/application.rs @@ -231,7 +231,11 @@ impl Application for ZebradApp { // build ( "target triple", - option_env!("VERGEN_CARGO_TARGET_TRIPLE").map(Into::into), + Some(env!("VERGEN_CARGO_TARGET_TRIPLE")).map(Into::into), + ), + ( + "build profile", + Some(env!("VERGEN_CARGO_PROFILE")).map(Into::into), ), // config ("Zcash network", Some(config.network.network.to_string())),