From cc0515e314a8397cd480a0d4ab66e39a10f6c723 Mon Sep 17 00:00:00 2001 From: Erez Rokah Date: Wed, 1 Apr 2020 14:41:55 +0300 Subject: [PATCH] chore: improve publish function logs (#3516) --- functions/publish.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/functions/publish.js b/functions/publish.js index 143d7a0a..27baab25 100644 --- a/functions/publish.js +++ b/functions/publish.js @@ -33,7 +33,20 @@ const verifySignature = event => { exports.handler = async function(event) { 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); const params = new URLSearchParams(event.body);