Fixes OMNITRACE_SUPPRESS_CONFIG handling (#53)

Fixes OMNITRACE_SUPPRESS_CONFIG

- now, if set to ON, the config file will not be read
Этот коммит содержится в:
Jonathan R. Madsen
2022-06-20 00:49:57 -05:00
коммит произвёл GitHub
родитель 0ef9a1531a
Коммит f27f062e88
+1
Просмотреть файл
@@ -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);