feat: improve log

This commit is contained in:
Fu Diwei 2025-04-18 18:04:52 +08:00
parent eb45b56a87
commit c10ceed753
2 changed files with 4 additions and 2 deletions

View File

@ -214,8 +214,8 @@ func (d *DeployerProvider) Deploy(ctx context.Context, certPem string, privkeyPe
break break
} }
d.logger.Info("waiting for deployment task completion ...") d.logger.Info(fmt.Sprintf("waiting for deployment task completion (current status: %s) ...", getDeploymentTaskDetailResp.Status))
time.Sleep(time.Second * 15) time.Sleep(time.Second * 5)
} }
return &deployer.DeployResult{}, nil return &deployer.DeployResult{}, nil

View File

@ -97,6 +97,8 @@ type CreateDeploymentTaskResponse struct {
type GetDeploymentTaskDetailResponse struct { type GetDeploymentTaskDetailResponse struct {
baseResponse baseResponse
Id string `json:"id"`
Name string `json:"name"`
Target string `json:"target"` Target string `json:"target"`
Actions []DeploymentTaskAction `json:"actions"` Actions []DeploymentTaskAction `json:"actions"`
Status string `json:"status"` Status string `json:"status"`