mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-07 04:13:15 +08:00
Remove unnecessary debug information
This commit is contained in:
@@ -14,12 +14,10 @@ export async function DownloadCacheFile(
|
||||
maxRetryRequests: 5
|
||||
}
|
||||
|
||||
// TODO: tighten the configuration and pass the appropriate user-agent
|
||||
const blobClient: BlobClient = new BlobClient(signedUploadURL)
|
||||
const blockBlobClient: BlockBlobClient = blobClient.getBlockBlobClient()
|
||||
|
||||
core.debug(`BlobClient: ${JSON.stringify(blobClient)}`)
|
||||
core.debug(`blockBlobClient: ${JSON.stringify(blockBlobClient)}`)
|
||||
core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`)
|
||||
|
||||
return blockBlobClient.downloadToFile(
|
||||
archivePath,
|
||||
|
||||
@@ -9,7 +9,6 @@ export async function UploadCacheFile(
|
||||
signedUploadURL: string,
|
||||
archivePath: string
|
||||
): Promise<{}> {
|
||||
// TODO: tighten the configuration and pass the appropriate user-agent
|
||||
// Specify data transfer options
|
||||
const uploadOptions: BlockBlobParallelUploadOptions = {
|
||||
blockSize: 4 * 1024 * 1024, // 4 MiB max block size
|
||||
@@ -20,8 +19,7 @@ export async function UploadCacheFile(
|
||||
const blobClient: BlobClient = new BlobClient(signedUploadURL)
|
||||
const blockBlobClient: BlockBlobClient = blobClient.getBlockBlobClient()
|
||||
|
||||
core.debug(`BlobClient: ${JSON.stringify(blobClient)}`)
|
||||
core.debug(`blockBlobClient: ${JSON.stringify(blockBlobClient)}`)
|
||||
core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`)
|
||||
|
||||
return blockBlobClient.uploadFile(archivePath, uploadOptions)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user