MCPcopy Create free account
hub / github.com/EasyIME/PIME / loadConfig

Method loadConfig

PIMELauncher/PipeServer.cpp:119–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void 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
128void PipeServer::saveConfig() {
129 auto configFile = dataDirPath_ + CONFIG_FILE_REL_PATH;

Callers

nothing calls this directly

Calls 2

loadJsonFileFunction · 0.85
from_strFunction · 0.85

Tested by

no test coverage detected