Fixes OMNITRACE_SUPPRESS_CONFIG handling (#53)
Fixes OMNITRACE_SUPPRESS_CONFIG - now, if set to ON, the config file will not be read
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0ef9a1531a
Коммит
f27f062e88
@@ -427,6 +427,7 @@ configure_settings(bool _init)
|
|||||||
for(auto&& itr :
|
for(auto&& itr :
|
||||||
tim::delimit(_config->get<std::string>("OMNITRACE_CONFIG_FILE"), ";:"))
|
tim::delimit(_config->get<std::string>("OMNITRACE_CONFIG_FILE"), ";:"))
|
||||||
{
|
{
|
||||||
|
if(_config->get_suppress_config()) continue;
|
||||||
OMNITRACE_CONDITIONAL_BASIC_PRINT(get_verbose_env() > 0,
|
OMNITRACE_CONDITIONAL_BASIC_PRINT(get_verbose_env() > 0,
|
||||||
"Reading config file %s\n", itr.c_str());
|
"Reading config file %s\n", itr.c_str());
|
||||||
_config->read(itr);
|
_config->read(itr);
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user