diff --git a/modules/runners/lambdas/runners/src/lambda.ts b/modules/runners/lambdas/runners/src/lambda.ts index fd24e09db9..848bda9c66 100644 --- a/modules/runners/lambdas/runners/src/lambda.ts +++ b/modules/runners/lambdas/runners/src/lambda.ts @@ -3,7 +3,7 @@ import { scaleDown as scaleDownAction } from './scale-runners/scale-down'; import { SQSEvent, ScheduledEvent, Context } from 'aws-lambda'; export const scaleUp = async (event: SQSEvent, context: Context, callback: any): Promise => { - console.dir(event, { depth: 5 }); + console.debug(JSON.stringify(event)); try { for (const e of event.Records) { await scaleUpAction(e.eventSource, JSON.parse(e.body)); diff --git a/modules/runners/lambdas/runners/src/scale-runners/scale-up.ts b/modules/runners/lambdas/runners/src/scale-runners/scale-up.ts index 1de5e6f390..ecc577c865 100644 --- a/modules/runners/lambdas/runners/src/scale-runners/scale-up.ts +++ b/modules/runners/lambdas/runners/src/scale-runners/scale-up.ts @@ -105,7 +105,7 @@ async function getJobStatus(githubInstallationClient: Octokit, payload: ActionRe } else { throw Error(`Event ${payload.eventType} is not supported`); } - + console.debug(`Job ${payload.id} is ${isQueued ? 'queued' : 'not queued'}`); return isQueued; }