Skip to content

Commit

Permalink
feat: 日志下载接口报错 TencentBlueKing#5757
Browse files Browse the repository at this point in the history
  • Loading branch information
yongyiduan committed Dec 10, 2021
1 parent 57c474a commit ebf4ae8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ApigwLogResourceV3Impl @Autowired constructor(
private val client: Client
) : ApigwLogResourceV3 {

@Value("\${gateway.url:#{null}}")
@Value("\${devopsGateway.api:#{null}}")
private val gatewayUrl: String? = ""

override fun getInitLogs(
Expand Down Expand Up @@ -160,7 +160,7 @@ class ApigwLogResourceV3Impl @Autowired constructor(
"downloadLogs project[$projectId] pipelineId[$pipelineId] buildId[$buildId]" +
"jobId[$jobId] executeCount[$executeCount] tag[$tag] jobId[$jobId]"
)
val path = StringBuilder("http://$gatewayUrl/log/api/service/logs/")
val path = StringBuilder("$gatewayUrl/log/api/service/logs/")
path.append(projectId)
path.append("/$pipelineId/$buildId/download?executeCount=${executeCount ?: 1}")

Expand Down

0 comments on commit ebf4ae8

Please sign in to comment.