diff options
Diffstat (limited to 'src/mongo/platform/shared_library_posix.cpp')
-rw-r--r-- | src/mongo/platform/shared_library_posix.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/platform/shared_library_posix.cpp b/src/mongo/platform/shared_library_posix.cpp index 871bd697012..ee7e1eca829 100644 --- a/src/mongo/platform/shared_library_posix.cpp +++ b/src/mongo/platform/shared_library_posix.cpp @@ -36,6 +36,7 @@ #include <dlfcn.h> #include <memory> +#include "mongo/logv2/log.h" #include "mongo/util/assert_util.h" #include "mongo/util/log.h" #include "mongo/util/str.h" @@ -45,14 +46,16 @@ namespace mongo { SharedLibrary::~SharedLibrary() { if (_handle) { if (dlclose(_handle) != 0) { - LOG(2) << "Load Library close failed " << dlerror(); + LOGV2_DEBUG( + 22612, 2, "Load Library close failed {dlerror}", "dlerror"_attr = dlerror()); } } } StatusWith<std::unique_ptr<SharedLibrary>> SharedLibrary::create( const boost::filesystem::path& full_path) { - LOG(1) << "Loading library: " << full_path.c_str(); + LOGV2_DEBUG( + 22613, 1, "Loading library: {full_path_c_str}", "full_path_c_str"_attr = full_path.c_str()); void* handle = dlopen(full_path.c_str(), RTLD_NOW | RTLD_GLOBAL); if (handle == nullptr) { |