Skip to content

Commit a735e42

Browse files
authored
fix: show module name in log instead of their address (#890)
1 parent 6b1b41f commit a735e42

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/rime/module.cc

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@ 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: "
35+
<< module->module_name;
3536
}
3637
}
3738

0 commit comments

Comments
 (0)