feat: log more info

This commit is contained in:
fengcaiwen
2023-09-22 22:20:24 +08:00
committed by naison
parent 76f1b74076
commit ab6b9ae2a2
18 changed files with 111 additions and 54 deletions

View File

@@ -122,6 +122,12 @@ func (svr *Server) Proxy(req *rpc.ConnectRequest, resp rpc.Daemon_ProxyServer) e
log.SetOutput(out)
}
// todo optimize here
{
svr.connect.Workloads = append(svr.connect.Workloads, req.Workloads...)
svr.connect.Headers = req.Headers
}
err = svr.connect.CreateRemoteInboundPod(ctx)
if err != nil {
log.Errorf("create remote inbound pod failed: %s", err.Error())