mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-07 20:35:33 -04:00
hashed logging k8s
This commit is contained in:
parent
368f63e404
commit
6bd6fddf40
BIN
dist/index.js
generated
vendored
BIN
dist/index.js
generated
vendored
Binary file not shown.
BIN
dist/index.js.map
generated
vendored
BIN
dist/index.js.map
generated
vendored
Binary file not shown.
@ -36,17 +36,20 @@ class KubernetesTaskRunner {
|
|||||||
const callback = (outputChunk: string) => {
|
const callback = (outputChunk: string) => {
|
||||||
output += outputChunk;
|
output += outputChunk;
|
||||||
|
|
||||||
// check if log start included in logs if so log a message
|
// split output chunk and handle per line
|
||||||
if (outputChunk.includes(`Collected Logs`)) {
|
for (const chunk of outputChunk.split(`\n`)) {
|
||||||
CloudRunnerLogger.log(`Log Start found in logs`);
|
// check if log start included in logs if so log a message
|
||||||
}
|
if (chunk.includes(`Collected Logs`)) {
|
||||||
if (outputChunk.includes(`LOGHASH:`)) {
|
CloudRunnerLogger.log(`Log Start found in logs`);
|
||||||
RemoteClientLogger.HandleLogChunkLine(outputChunk);
|
}
|
||||||
CloudRunnerLogger.log(`Loghash found`);
|
if (chunk.includes(`LOGHASH:`)) {
|
||||||
}
|
RemoteClientLogger.HandleLogChunkLine(chunk);
|
||||||
if (outputChunk.includes(`LOGS:`)) {
|
CloudRunnerLogger.log(`Loghash found`);
|
||||||
const result = RemoteClientLogger.HandleLogChunkLine(outputChunk);
|
}
|
||||||
CloudRunnerLogger.log(`Logs found HandleLogChunkLineResult:${result}`);
|
if (chunk.includes(`LOGS:`)) {
|
||||||
|
const result = RemoteClientLogger.HandleLogChunkLine(chunk);
|
||||||
|
CloudRunnerLogger.log(`Logs found HandleLogChunkLineResult:${result}`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user