Skip to content

Commit

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

Expand Down

0 comments on commit a735e42

Please sign in to comment.