chore: improve publish function logs (#3516)

This commit is contained in:
Erez Rokah 2020-04-01 14:41:55 +03:00 committed by GitHub
parent a07554a22a
commit cc0515e314
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,20 @@ const verifySignature = event => {
exports.handler = async function(event) { exports.handler = async function(event) {
try { try {
console.log(JSON.stringify(event, null, 2)); console.log(
JSON.stringify(
{
event,
env: {
PUBLISH_COMMAND: process.env.PUBLISH_COMMAND,
ALLOWED_USERS: process.env.ALLOWED_USERS,
GITHUB_REPO: process.env.GITHUB_REPO,
},
},
null,
2,
),
);
verifySignature(event); verifySignature(event);
const params = new URLSearchParams(event.body); const params = new URLSearchParams(event.body);