Skip to content

Commit

Permalink
hashed logs
Browse files Browse the repository at this point in the history
  • Loading branch information
frostebite committed Aug 14, 2023
1 parent debe473 commit c658a08
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
9 changes: 8 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 @@ -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));
Expand Down

0 comments on commit c658a08

Please sign in to comment.