Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cc0515e

Browse files
authoredApr 1, 2020
chore: improve publish function logs (decaporg#3516)
1 parent a07554a commit cc0515e

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed
 

‎functions/publish.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,20 @@ const verifySignature = event => {
3333

3434
exports.handler = async function(event) {
3535
try {
36-
console.log(JSON.stringify(event, null, 2));
36+
console.log(
37+
JSON.stringify(
38+
{
39+
event,
40+
env: {
41+
PUBLISH_COMMAND: process.env.PUBLISH_COMMAND,
42+
ALLOWED_USERS: process.env.ALLOWED_USERS,
43+
GITHUB_REPO: process.env.GITHUB_REPO,
44+
},
45+
},
46+
null,
47+
2,
48+
),
49+
);
3750
verifySignature(event);
3851

3952
const params = new URLSearchParams(event.body);

0 commit comments

Comments
 (0)
Please sign in to comment.