From 3168bfe9b1e74f63b488fe85b8bd40cb45058801 Mon Sep 17 00:00:00 2001 From: WhiredPlanck Date: Mon, 10 Jun 2024 12:54:07 +0800 Subject: [PATCH] fix: show module name in log instead of their address --- 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; } }