Skip to content

Commit

Permalink
Include log chunk when task runner sees log update, clarify if we can…
Browse files Browse the repository at this point in the history
… pull logs from same line or next line
  • Loading branch information
frostebite committed Sep 24, 2023
1 parent a760ee8 commit 5631a3b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ class KubernetesTaskRunner {
}
if (chunk.includes(`LOGS:`)) {
const result = RemoteClientLogger.HandleLogChunkLine(chunk);
CloudRunnerLogger.log(`Logs found HandleLogChunkLineResult:${result}\n${chunk}`);

// remove "LOGS: " and decode base64 remaining
const unpacked = Buffer.from(chunk.split(`LOGS: `)[1], 'base64').toString('ascii');
CloudRunnerLogger.log(`Logs found HandleLogChunkLineResult:${result}\n${unpacked}`);
}
}
};
Expand Down

0 comments on commit 5631a3b

Please sign in to comment.