From 30460ff8c5318b6812eb06014167fa0e39aaf77a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=BF=8A=E5=AE=8F?= <389838709@qq.com> Date: Wed, 4 Dec 2024 18:39:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E5=88=97=E8=A1=A8=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/http/controllers/backend/cron_func_logs_controller.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/http/controllers/backend/cron_func_logs_controller.go b/app/http/controllers/backend/cron_func_logs_controller.go index 767c0eb..53236bf 100644 --- a/app/http/controllers/backend/cron_func_logs_controller.go +++ b/app/http/controllers/backend/cron_func_logs_controller.go @@ -9,6 +9,7 @@ import ( cmd_services "cron_admin/app/services/cmd_service" "cron_admin/app/utils/helper" "cron_admin/app/utils/mapstructure" + "fmt" "github.com/gin-gonic/gin" "strconv" ) @@ -17,6 +18,7 @@ func CronFuncLogsList(c *gin.Context) { request := controllers.GetRequest(c).(*backend.CronFuncLogsListRequest) count, funcLogsList, err := services.CronFuncLogsList(request, request.Page, request.Limit) if err != nil { + fmt.Printf("列表获取失败,失败原因:%s", err.Error()) controllers.HandRes(c, nil, errorcode.ParamError) } else { var funcLogsListResponse []backend.CronFuncLogsListResponse