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