From ef86cd143849ef7003518f434e38f7b601b42254 Mon Sep 17 00:00:00 2001 From: Gabriel Mitterrutzner Date: Mon, 9 Oct 2023 15:37:09 +0200 Subject: [PATCH] Debug build defaults to CELERITY_RECORDING=1 and CELERITY_LOG_LEVEL=trace --- src/config.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/config.cc b/src/config.cc index 16192909c..613c95ea4 100644 --- a/src/config.cc +++ b/src/config.cc @@ -170,7 +170,7 @@ namespace detail { // ------------------------------- CELERITY_LOG_LEVEL --------------------------------- #if defined(CELERITY_DETAIL_ENABLE_DEBUG) - const auto log_lvl = parsed_and_validated_envs.get_or(env_log_level, log_level::debug); + const auto log_lvl = parsed_and_validated_envs.get_or(env_log_level, log_level::trace); #else const auto log_lvl = parsed_and_validated_envs.get_or(env_log_level, log_level::info); #endif @@ -201,7 +201,12 @@ namespace detail { const auto has_dry_run_nodes = parsed_and_validated_envs.get(env_dry_run_nodes); if(has_dry_run_nodes) { m_dry_run_nodes = *has_dry_run_nodes; } +#if defined(CELERITY_DETAIL_ENABLE_DEBUG) + m_recording = parsed_and_validated_envs.get_or(env_recording, true); +#else m_recording = parsed_and_validated_envs.get_or(env_recording, false); +#endif + m_horizon_step = parsed_and_validated_envs.get(env_horizon_step); m_horizon_max_parallelism = parsed_and_validated_envs.get(env_horizon_max_para);