Skip to content

Commit fa2d1a7

Browse files
committed
fix: show module name in log instead of their address
1 parent 6b1b41f commit fa2d1a7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/rime/module.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ void ModuleManager::LoadModule(RimeModule* module) {
2626
if (!module || loaded_.find(module) != loaded_.end()) {
2727
return;
2828
}
29-
DLOG(INFO) << "loading module: " << module;
29+
DLOG(INFO) << "loading module: " << module->module_name;
3030
loaded_.insert(module);
3131
if (module->initialize != NULL) {
3232
module->initialize();
3333
} else {
34-
LOG(WARNING) << "missing initialize() function in module: " << module;
34+
LOG(WARNING) << "missing initialize() function in module: " << module->module_name;
3535
}
3636
}
3737

0 commit comments

Comments
 (0)