Skip to content

Commit 1683a5c

Browse files
committed
feat(transfer_engine): enhance topology logging
Add detailed topology info in discovery and transport installation logs Signed-off-by: staryxchen <[email protected]>
1 parent 3e052c0 commit 1683a5c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mooncake-transfer-engine/src/transfer_engine.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,9 @@ int TransferEngine::init(const std::string &metadata_conn_string,
150150
} else {
151151
local_topology_->discover(filter_);
152152
}
153-
LOG(INFO) << "Topology discovery complete. Found "
153+
LOG(INFO) << "Auto-discovering topology complete: Found "
154154
<< local_topology_->getHcaList().size() << " HCAs.";
155+
LOG(INFO) << "Topology:\n" << local_topology_->toString();
155156

156157
#ifdef USE_MNNVL
157158
if (local_topology_->getHcaList().size() > 0 &&
@@ -215,6 +216,7 @@ Transport *TransferEngine::installTransport(const std::string &proto,
215216
LOG(ERROR) << "Failed to parse NIC priority matrix";
216217
return nullptr;
217218
}
219+
LOG(INFO) << "Install transport " << proto << " with custom topology:\n" << local_topology_->toString();
218220
}
219221

220222
transport = multi_transports_->installTransport(proto, local_topology_);

0 commit comments

Comments
 (0)