Mercurial > hg > orthanc
comparison OrthancServer/Plugins/Engine/PluginsManager.cpp @ 4271:1bd14c900699
LogCategory_PLUGINS
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 03 Nov 2020 07:15:44 +0100 |
parents | 05b8fd21089c |
children | 3150306fb4ad |
comparison
equal
deleted
inserted
replaced
4270:251a8b07fa37 | 4271:1bd14c900699 |
---|---|
283 if (!exists(folder)) | 283 if (!exists(folder)) |
284 { | 284 { |
285 return; | 285 return; |
286 } | 286 } |
287 | 287 |
288 LOG(INFO) << "Scanning folder " << folder << " for plugins"; | 288 CLOG(INFO, PLUGINS) << "Scanning folder " << folder << " for plugins"; |
289 | 289 |
290 directory_iterator end_it; // default construction yields past-the-end | 290 directory_iterator end_it; // default construction yields past-the-end |
291 for (directory_iterator it(folder); | 291 for (directory_iterator it(folder); |
292 it != end_it; | 292 it != end_it; |
293 ++it) | 293 ++it) |
306 std::string extension = boost::filesystem::extension(it->path()); | 306 std::string extension = boost::filesystem::extension(it->path()); |
307 Toolbox::ToLowerCase(extension); | 307 Toolbox::ToLowerCase(extension); |
308 | 308 |
309 if (extension == PLUGIN_EXTENSION) | 309 if (extension == PLUGIN_EXTENSION) |
310 { | 310 { |
311 LOG(INFO) << "Found a shared library: " << it->path(); | 311 CLOG(INFO, PLUGINS) << "Found a shared library: " << it->path(); |
312 | 312 |
313 SharedLibrary plugin(path); | 313 SharedLibrary plugin(path); |
314 if (IsOrthancPlugin(plugin)) | 314 if (IsOrthancPlugin(plugin)) |
315 { | 315 { |
316 RegisterPlugin(path); | 316 RegisterPlugin(path); |