Skip to content

Commit 652ce29

Browse files
authored
remove unneeded log (#16)
1 parent 81cd383 commit 652ce29

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

.changeset/olive-fans-do.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'build-uploader': patch
3+
---
4+
5+
Better logging with file information

src/run.ts

+14
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,20 @@ export async function run(): Promise<string> {
3535
: null;
3636
const macGameName = macosBuildPath ? extractGameName(macosBuildPath) : null;
3737

38+
if (windowsBuildPath) {
39+
core.info(`Upload Windows build: ${windowsBuildPath}`);
40+
core.info(`Windows game name: ${windowsGameName}`);
41+
core.info(`Windows file bytes: ${windowsStats ? windowsStats.size : 0}`);
42+
core.info(`Windows chunk total: ${windowsChunkTotal}`);
43+
}
44+
45+
if (macosBuildPath) {
46+
core.info(`Upload macOS build: ${macosBuildPath}`);
47+
core.info(`macOS game name: ${macGameName}`);
48+
core.info(`macOS file bytes: ${macStats ? macStats.size : 0}`);
49+
core.info(`macOS chunk total: ${macChunkTotal}`);
50+
}
51+
3852
const buildId = await createBuild({
3953
apiKey,
4054
apiBaseUrl,

src/uploadBuild.ts

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export async function uploadBuild({
2222
const fileHandle = await fs.open(filePath);
2323
const stats = await fileHandle.stat();
2424
const totalChunks = Math.ceil(stats.size / CHUNK_SIZE);
25-
core.info(`File size: ${stats.size} bytes, Total chunks: ${totalChunks}`);
2625

2726
for (let i = 0; i < totalChunks; i++) {
2827
try {

0 commit comments

Comments
 (0)