Skip to content

Commit

Permalink
fix(logging): Additional Logging (#1135)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcaulifn committed Aug 31, 2021
1 parent 4b39fb9 commit f7f194d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/runners/lambdas/runners/src/lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> => {
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));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f7f194d

Please sign in to comment.