Skip to content

Commit

Permalink
chore(chunkserver): Add some logging to plugin initialization
Browse files Browse the repository at this point in the history
Signed-off-by: Urmas Rist <[email protected]>
  • Loading branch information
uristdwarf committed Feb 26, 2025
1 parent ca70b28 commit a854fdd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/chunkserver/chunkserver-common/plugin_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,15 @@ bool PluginManager::loadPlugins(const std::string &directory) {
directory.c_str(), e.what());
return false;
}
safs::log_info("Loading plugins from {}", directory);

boost::filesystem::path dir(directory);
bool loadedPluginsSuccessfully = true;

for (auto &dirEntry : boost::filesystem::directory_iterator(dir)) {
if (boost::filesystem::is_regular_file(dirEntry)) {
std::string filename = dirEntry.path().filename().string();
safs::log_info("Loading plugin {}", filename);

if (filename.find("lib") == std::string::npos) { continue; }

Expand Down

0 comments on commit a854fdd

Please sign in to comment.