MCPcopy Create free account
hub / github.com/Tencent/phxsql / RealReadFile

Method RealReadFile

phxcomm/configparser/base_config.cpp:105–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105int PhxBaseConfig::RealReadFile(const string &filename) {
106 if (INIReader::ReadFile(filename.c_str()) == 0) {
107 LogWarning("%s read path %s done", __func__, filename.c_str());
108 ReadConfig();
109 return 0;
110 }
111 LogWarning("%s read path fail %s, ret %d, error %s", __func__, filename.c_str(), INIReader::ParseError(),
112 strerror(errno));
113 return 1;
114}
115
116string PhxBaseConfig::Get(const string &section, const string &name, const string &default_value) {
117 return INIReader::Get(section, name, default_value);

Callers

nothing calls this directly

Calls 1

LogWarningFunction · 0.85

Tested by

no test coverage detected