mirror of
				https://kkgithub.com/actions/cache.git
				synced 2025-10-31 18:51:49 +08:00 
			
		
		
		
	Add more debug logging
This commit is contained in:
		
							
								
								
									
										2
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							| @ -1627,6 +1627,7 @@ function uploadFile(restClient, cacheId, archivePath) { | ||||
|         core.debug("Awaiting all uploads"); | ||||
|         let offset = 0; | ||||
|         yield Promise.all(threads.map(() => __awaiter(this, void 0, void 0, function* () { | ||||
|             core.debug(`Offset: ${offset} FileSize: ${fileSize}`); | ||||
|             while (offset < fileSize) { | ||||
|                 const chunkSize = offset + MAX_CHUNK_SIZE > fileSize ? fileSize - offset : MAX_CHUNK_SIZE; | ||||
|                 const start = offset; | ||||
| @ -1636,7 +1637,6 @@ function uploadFile(restClient, cacheId, archivePath) { | ||||
|                 const chunk = fs.createReadStream(archivePath, { fd, start, end, autoClose: false }); | ||||
|                 responses.push(yield uploadChunk(restClient, resourceUrl, chunk, start, end)); | ||||
|             } | ||||
|             return Promise.resolve(); | ||||
|         }))); | ||||
|         fs.closeSync(fd); | ||||
|         const failedResponse = responses.find(x => !isSuccessStatusCode(x.statusCode)); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Josh Gross
					Josh Gross