mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 13:05:53 +08:00
[Update] Debug info
This commit is contained in:
1 parent
094e7bc0d4
commit
c8c255b233
1 file changed
+2
@@ -162,8 +162,10 @@ static int ReadConfig(const char* ConfigDir)
|
||||
if (v && v->is<std::string>()) {
|
||||
std::string s = v->as<std::string>();
|
||||
strncpy(out, s.c_str(), INJECT_PATH_MAX - 1);
|
||||
PLOGD << "Found parameter: " << key << " = " << s.c_str();
|
||||
} else {
|
||||
strncpy(out, def, INJECT_PATH_MAX - 1);
|
||||
PLOGD << "Not found parameter: " << key << ", use default: " << def;
|
||||
}
|
||||
out[INJECT_PATH_MAX - 1] = '\0';
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user