Skip to content

Commit

Permalink
DOP-4414 logging
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed Mar 8, 2024
1 parent 51c62aa commit b68c870
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/controllers/v2/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ export const TriggerBuild = async (event: APIGatewayEvent): Promise<APIGatewayPr
const job = await prepGithubPushPayload(body, repoBranchesRepository, jobPrefix, repoInfo, path);

consoleLogger.info(job.title, 'Creating Job');
consoleLogger.info(job.title, 'JOB INFO :' + body?.repository.name);
consoleLogger.info(job.title, 'JOB INFO :' + body.head_commit + body.head_commit?.id);
consoleLogger.info(job.title, 'REPO INFO:' + repoInfo[0]);
consoleLogger.info(job.title, 'REPO INFO PREFIX:' + repoInfo?.prefix[1]);
consoleLogger.info(job.title, 'JOB repo name :' + body?.repository.name);
consoleLogger.info(job.title, 'job info:' + Object.keys(body));
consoleLogger.info(job.title, 'commit info:' + (body.head_commit ? Object.keys(body.head_commit) : ''));
consoleLogger.info(job.title, 'REPO INFO:' + Object.keys(repoInfo));
consoleLogger.info(job.title, 'REPO INFO PREFIX ENV:' + jobPrefix);

const jobId = await jobRepository.insertJob(job, c.get('jobsQueueUrl'));
Expand Down

0 comments on commit b68c870

Please sign in to comment.