Skip to content

Commit

Permalink
More debug
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Howe <[email protected]>
  • Loading branch information
bmhowe23 committed Jan 18, 2025
1 parent 0e3e87a commit b7c9ad6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/qec/lib/plugin_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ void load_plugins(const std::string &plugin_dir, PluginType type) {
}
for (const auto &entry : fs::directory_iterator(plugin_dir)) {
if (entry.path().extension() == ".so") {
printf("BMH Opening %s\n", entry.path().c_str());
void *raw_handle = dlopen(entry.path().c_str(), RTLD_NOW);
if (raw_handle) {
// Custom deleter ensures dlclose is called
Expand All @@ -42,6 +43,8 @@ void load_plugins(const std::string &plugin_dir, PluginType type) {
std::cerr << "ERROR: Failed to load plugin: " << entry.path()
<< " Error: " << dlerror() << std::endl;
}
} else {
printf("BMH Skipping %s\n", entry.path().c_str());
}
}
}
Expand Down

0 comments on commit b7c9ad6

Please sign in to comment.