From ceda690ac668b2d78b4931a46f567824f2777c45 Mon Sep 17 00:00:00 2001 From: YuTang Song <2313186065@qq.com> Date: Wed, 1 Jul 2026 15:07:07 +0800 Subject: [PATCH 1/2] debug: add log for check apisix info Signed-off-by: YuTang Song <2313186065@qq.com> --- pkg/microservice/aslan/core/system/service/api_gateway.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/microservice/aslan/core/system/service/api_gateway.go b/pkg/microservice/aslan/core/system/service/api_gateway.go index 8a0ca9417e..00f0ae9e64 100644 --- a/pkg/microservice/aslan/core/system/service/api_gateway.go +++ b/pkg/microservice/aslan/core/system/service/api_gateway.go @@ -61,6 +61,7 @@ func DeleteApiGateway(idHex string, log *zap.SugaredLogger) error { // ValidateApiGateway validates the api gateway connection // TODO: Implement the actual validation logic func ValidateApiGateway(apiGateway *models.ApiGateway, log *zap.SugaredLogger) error { + log.Infof("Validate api gateway: %v", apiGateway) client := apisix.NewClient(apiGateway.Address, apiGateway.Token) _, err := client.ListUpstreams(1, 10) @@ -71,4 +72,3 @@ func ValidateApiGateway(apiGateway *models.ApiGateway, log *zap.SugaredLogger) e return nil } - From 76bb287d094487294039b4009052b16c368a8471 Mon Sep 17 00:00:00 2001 From: YuTang Song <2313186065@qq.com> Date: Wed, 1 Jul 2026 15:27:18 +0800 Subject: [PATCH 2/2] fix: rollback code Signed-off-by: YuTang Song <2313186065@qq.com> --- pkg/microservice/aslan/core/system/service/api_gateway.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/microservice/aslan/core/system/service/api_gateway.go b/pkg/microservice/aslan/core/system/service/api_gateway.go index 00f0ae9e64..10c528bac8 100644 --- a/pkg/microservice/aslan/core/system/service/api_gateway.go +++ b/pkg/microservice/aslan/core/system/service/api_gateway.go @@ -61,7 +61,6 @@ func DeleteApiGateway(idHex string, log *zap.SugaredLogger) error { // ValidateApiGateway validates the api gateway connection // TODO: Implement the actual validation logic func ValidateApiGateway(apiGateway *models.ApiGateway, log *zap.SugaredLogger) error { - log.Infof("Validate api gateway: %v", apiGateway) client := apisix.NewClient(apiGateway.Address, apiGateway.Token) _, err := client.ListUpstreams(1, 10)