Skip to content

Commit c7c0dfd

Browse files
authored
Log stack traces too (#94)
1 parent 2b47f06 commit c7c0dfd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

GithubCommentReader/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,9 @@ async function handler(request, context) {
794794
});
795795
} catch (e) {
796796
context.log(`Error processing comment: ${e}`);
797+
if (e instanceof Error) {
798+
context.log(e.stack);
799+
}
797800
return {
798801
status: 500,
799802
};

0 commit comments

Comments
 (0)