Add option to subprocess output during plugin detection

Allows debugging problems when detecting plugins.
This commit is contained in:
TheAssassin 2022-07-12 13:48:55 +02:00
parent 56760df190
commit 0e89061417

View File

@ -59,9 +59,13 @@ namespace linuxdeploy {
return -1;
}
if (getenv("DEBUG_PLUGIN_DETECTION")) {
ldLog() << LD_DEBUG << "output from plugin:" << stdoutOutput << std::endl;
}
try {
auto apiLevel = std::stoi(stdoutOutput);
return apiLevel;
const int parsedApiLevel = std::stoi(stdoutOutput);
return parsedApiLevel;
} catch (const std::exception&) {
return -1;
}