32 static std::regex env_var_pattern(
"\\$\\{([^}]+)\\}");
34 while (std::regex_search(input_string, match, env_var_pattern)) {
35 const char* s = getenv(match[1].str().c_str());
36 const std::string env_var(s ==
nullptr ?
"" : s);
37 input_string.replace(match[0].first, match[0].second, env_var);
53 uhal::setLogLevelTo(uhal::Debug());
55 uhal::setLogLevelTo(uhal::Info());
57 uhal::setLogLevelTo(uhal::Notice());
59 uhal::setLogLevelTo(uhal::Warning());
61 uhal::setLogLevelTo(uhal::Error());
63 uhal::setLogLevelTo(uhal::Fatal());
71 }
catch (
const uhal::exception::FileNotFound& excpt) {
74 throw UHALConnectionsFileIssue(
ERS_HERE, message.str(), excpt);