mirror of
https://github.com/audacity/linuxdeploy.git
synced 2025-12-11 05:46:48 -06:00
Add option to subprocess output during plugin detection
Allows debugging problems when detecting plugins.
This commit is contained in:
parent
56760df190
commit
0e89061417
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user