hashed logs

This commit is contained in:
Frostebite 2023-08-14 22:35:49 +01:00
parent debe4730fa
commit c658a08c00
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

@ -46,12 +46,20 @@ class KubernetesTaskRunner {
let lastMessageSeen = false;
let logs;
const callback = (outputChunk: string) => {
output += outputChunk;
// check if log start included in logs if so log a message
if (outputChunk.includes(`log start`)) {
CloudRunnerLogger.log(`Log Start found in logs`);
}
};
try {
logs = await CloudRunnerSystem.Run(
`kubectl logs ${podName}${extraFlags} --timestamps${sinceTime}`,
false,
true,
callback,
);
} catch (error: any) {
await new Promise((resolve) => setTimeout(resolve, 3000));