hashed logging k8s

This commit is contained in:
Frostebite 2023-09-20 20:33:43 +01:00
parent 51c1da5a82
commit 368f63e404
3 changed files with 8 additions and 0 deletions

BIN
dist/index.js generated vendored

Binary file not shown.

BIN
dist/index.js.map generated vendored

Binary file not shown.

View File

@ -40,6 +40,14 @@ class KubernetesTaskRunner {
if (outputChunk.includes(`Collected Logs`)) { if (outputChunk.includes(`Collected Logs`)) {
CloudRunnerLogger.log(`Log Start found in logs`); CloudRunnerLogger.log(`Log Start found in logs`);
} }
if (outputChunk.includes(`LOGHASH:`)) {
RemoteClientLogger.HandleLogChunkLine(outputChunk);
CloudRunnerLogger.log(`Loghash found`);
}
if (outputChunk.includes(`LOGS:`)) {
const result = RemoteClientLogger.HandleLogChunkLine(outputChunk);
CloudRunnerLogger.log(`Logs found HandleLogChunkLineResult:${result}`);
}
}; };
try { try {
logs = await CloudRunnerSystem.Run(`kubectl logs ${podName}${extraFlags}`, false, true, callback); logs = await CloudRunnerSystem.Run(`kubectl logs ${podName}${extraFlags}`, false, true, callback);