| 1086 | } |
| 1087 | |
| 1088 | void 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 | |
| 1105 | void ArgsManager::LogArgs() const |
| 1106 | { |