Skip to content

Commit 5466f45

Browse files
v2.3: log whether debug assertions are enabled during validator start (backport of #8302) (#8309)
log whether debug assertions are enabled during validator start (#8302) (cherry picked from commit eb5b195) Co-authored-by: Trent Nelson <[email protected]>
1 parent 1aa2f41 commit 5466f45

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/src/validator.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,12 @@ impl Validator {
587587
tpu_config: ValidatorTpuConfig,
588588
admin_rpc_service_post_init: Arc<RwLock<Option<AdminRpcRequestMetadataPostInit>>>,
589589
) -> Result<Self> {
590+
#[cfg(debug_assertions)]
591+
const DEBUG_ASSERTION_STATUS: &str = "enabled";
592+
#[cfg(not(debug_assertions))]
593+
const DEBUG_ASSERTION_STATUS: &str = "disabled";
594+
info!("debug-assertion status: {DEBUG_ASSERTION_STATUS}");
595+
590596
let ValidatorTpuConfig {
591597
use_quic,
592598
vote_use_quic,

0 commit comments

Comments
 (0)