Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit f7f194d

Browse files
authored
fix(logging): Additional Logging (#1135)
1 parent 4b39fb9 commit f7f194d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: modules/runners/lambdas/runners/src/lambda.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { scaleDown as scaleDownAction } from './scale-runners/scale-down';
33
import { SQSEvent, ScheduledEvent, Context } from 'aws-lambda';
44

55
export const scaleUp = async (event: SQSEvent, context: Context, callback: any): Promise<void> => {
6-
console.dir(event, { depth: 5 });
6+
console.debug(JSON.stringify(event));
77
try {
88
for (const e of event.Records) {
99
await scaleUpAction(e.eventSource, JSON.parse(e.body));

Diff for: modules/runners/lambdas/runners/src/scale-runners/scale-up.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ async function getJobStatus(githubInstallationClient: Octokit, payload: ActionRe
105105
} else {
106106
throw Error(`Event ${payload.eventType} is not supported`);
107107
}
108-
108+
console.debug(`Job ${payload.id} is ${isQueued ? 'queued' : 'not queued'}`);
109109
return isQueued;
110110
}
111111

0 commit comments

Comments
 (0)