| 103 | } |
| 104 | |
| 105 | int 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 | |
| 116 | string PhxBaseConfig::Get(const string §ion, const string &name, const string &default_value) { |
| 117 | return INIReader::Get(section, name, default_value); |
nothing calls this directly
no test coverage detected