Skip to content

Commit

Permalink
Change debug level to get more info about segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
vksnk committed Oct 26, 2023
1 parent 3f3c515 commit a5a689b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ namespace Internal {

int debug::debug_level() {
static int cached_debug_level = ([]() -> int {
std::string lvl = get_env_variable("HL_DEBUG_CODEGEN");
return !lvl.empty() ? atoi(lvl.c_str()) : 0;
return 1;
// std::string lvl = get_env_variable("HL_DEBUG_CODEGEN");
// return !lvl.empty() ? atoi(lvl.c_str()) : 1;
})();
return cached_debug_level;
}
Expand Down

0 comments on commit a5a689b

Please sign in to comment.