feat: 添加debug日志

This commit is contained in:
lynx
2023-07-31 16:16:54 +08:00
parent a47afeddda
commit a140d19e53

View File

@@ -243,6 +243,7 @@ func (e *Engine) RoutineRouteTableWriter() {
}
func (e *Engine) addConn(dst netip.Addr) (PacketChan, error) {
e.log.Debugf(e.ctx, "Try to connect to the corresponding node of %s", dst)
e.routeTable.Lock()
for prefix, id := range e.routeTable.prefix {
if prefix.Contains(dst) {