fix(Tools/DBImport): Add Env var support to DBimport tool (#17019)
add env var support for dbimport
This commit is contained in:
parent
57e0b496bd
commit
cf30d534f1
1 changed files with 5 additions and 0 deletions
|
|
@ -62,6 +62,8 @@ int main(int argc, char** argv)
|
|||
if (!sConfigMgr->LoadAppConfigs())
|
||||
return 1;
|
||||
|
||||
std::vector<std::string> overriddenKeys = sConfigMgr->OverrideWithEnvVariablesIfAny();
|
||||
|
||||
// Init logging
|
||||
sLog->Initialize();
|
||||
|
||||
|
|
@ -78,6 +80,9 @@ int main(int argc, char** argv)
|
|||
}
|
||||
);
|
||||
|
||||
for (std::string const& key : overriddenKeys)
|
||||
LOG_INFO("dbimport", "Configuration field {} was overridden with environment variable.", key);
|
||||
|
||||
OpenSSLCrypto::threadsSetup();
|
||||
|
||||
std::shared_ptr<void> opensslHandle(nullptr, [](void*) { OpenSSLCrypto::threadsCleanup(); });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue