Skip to content

Commit

Permalink
fix: show module name in log instead of their address
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck committed Jun 10, 2024
1 parent 6b1b41f commit fa2d1a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rime/module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ 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;
}
}

Expand Down

0 comments on commit fa2d1a7

Please sign in to comment.