From a735e42cf9d62d89301bc8a2f7c8d96ebed3d4f6 Mon Sep 17 00:00:00 2001 From: WhiredPlanck Date: Mon, 10 Jun 2024 21:42:01 +0800 Subject: [PATCH] fix: show module name in log instead of their address (#890) --- src/rime/module.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rime/module.cc b/src/rime/module.cc index 223d116709..c88e68b31e 100644 --- a/src/rime/module.cc +++ b/src/rime/module.cc @@ -26,12 +26,13 @@ void ModuleManager::LoadModule(RimeModule* module) { if (!module || loaded_.find(module) != loaded_.end()) { return; } - DLOG(INFO) << "loading module: " << module; + DLOG(INFO) << "loading module: " << module->module_name; loaded_.insert(module); if (module->initialize != NULL) { module->initialize(); } else { - LOG(WARNING) << "missing initialize() function in module: " << module; + LOG(WARNING) << "missing initialize() function in module: " + << module->module_name; } }