[Update] Debug info

This commit is contained in:
xiaozhou233 committed 2025-11-09 15:09:33 +08:00
1 parent 094e7bc0d4
commit c8c255b233
1 file changed
+2
+2
View File
@@ -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';
};