| 117 | } |
| 118 | |
| 119 | void PipeServer::loadConfig() { |
| 120 | auto configFile = dataDirPath_ + CONFIG_FILE_REL_PATH; |
| 121 | Json::Value config; |
| 122 | if (loadJsonFile(configFile, config)) { |
| 123 | auto levelName = config["logLevel"].asString(); |
| 124 | logLevel_ = spdlog::level::from_str(levelName); |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | void PipeServer::saveConfig() { |
| 129 | auto configFile = dataDirPath_ + CONFIG_FILE_REL_PATH; |
nothing calls this directly
no test coverage detected