Skip to content

Commit c76b3ee

Browse files
committed
feat(logs): added X-GitHub-Request-Id: and context id, header requested by github to help with debugging ref #25
1 parent f2aa09c commit c76b3ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module.exports = (app) => {
4242
return;
4343
}
4444

45-
log(pr, 'Request received');
45+
log(pr, `Request received [Context: ${context.id}]`);
4646

4747
let prBody = pr.body;
4848

@@ -129,7 +129,7 @@ module.exports = (app) => {
129129

130130
// send check back to GitHub
131131
const response = await context.octokit.checks.create(context.repo(check));
132-
log(pr, `Check response status from GitHub ${response.status}`);
132+
log(pr, `Check response status from GitHub ${response.status} [X-GitHub-Request-Id: ${response.headers['x-github-request-id']}]`);
133133

134134
return;
135135
});

0 commit comments

Comments
 (0)