Skip to content

Commit

Permalink
Debug build defaults to CELERITY_RECORDING=1 and CELERITY_LOG_LEVEL=t…
Browse files Browse the repository at this point in the history
…race
  • Loading branch information
GagaLP committed Oct 9, 2023
1 parent 9ae8356 commit ef86cd1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit ef86cd1

Please sign in to comment.