Fixes OMNITRACE_SUPPRESS_CONFIG handling (#53)

Fixes OMNITRACE_SUPPRESS_CONFIG

- now, if set to ON, the config file will not be read

[ROCm/rocprofiler-systems commit: f27f062e88]
This commit is contained in:
Jonathan R. Madsen
2022-06-20 00:49:57 -05:00
committed by GitHub
parent 41ab1b61e3
commit c060cfe2d9
@@ -427,6 +427,7 @@ configure_settings(bool _init)
for(auto&& itr :
tim::delimit(_config->get<std::string>("OMNITRACE_CONFIG_FILE"), ";:"))
{
if(_config->get_suppress_config()) continue;
OMNITRACE_CONDITIONAL_BASIC_PRINT(get_verbose_env() > 0,
"Reading config file %s\n", itr.c_str());
_config->read(itr);