MCPcopy Create free account
hub / github.com/ElementsProject/elements / logArgsPrefix

Method logArgsPrefix

src/util/system.cpp:1088–1103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1086}
1087
1088void ArgsManager::logArgsPrefix(
1089 const std::string& prefix,
1090 const std::string& section,
1091 const std::map<std::string, std::vector<util::SettingsValue>>& args) const
1092{
1093 std::string section_str = section.empty() ? "" : "[" + section + "] ";
1094 for (const auto& arg : args) {
1095 for (const auto& value : arg.second) {
1096 std::optional<unsigned int> flags = GetArgFlags('-' + arg.first);
1097 if (flags) {
1098 std::string value_str = (*flags & SENSITIVE) ? "****" : value.write();
1099 LogPrintf("%s %s%s=%s\n", prefix, section_str, arg.first, value_str);
1100 }
1101 }
1102 }
1103}
1104
1105void ArgsManager::LogArgs() const
1106{

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected