Fixes #1241 Replacing instances of console with logger#1242
Fixes #1241 Replacing instances of console with logger#1242srajiang merged 3 commits intoslackapi:mainfrom wongjas:jwong_fix_1241_replace_console_with_logger
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1242 +/- ##
=======================================
Coverage 73.22% 73.22%
=======================================
Files 17 17
Lines 1438 1438
Branches 431 431
=======================================
Hits 1053 1053
Misses 300 300
Partials 85 85 Continue to review full report at Codecov.
|
| try { | ||
| const result = await client.chat.postMessage({ | ||
| channel: welcomeChannelId, | ||
| text: `Welcome to the team, <@${event.user.id}>! 🎉 You can introduce yourself in this channel.` |
There was a problem hiding this comment.
I don't think this change is correct.
There was a problem hiding this comment.
Whoops, I think you're right, I was testing with the wrong event! I was going to check the doc but there isn't a full example there either: https://api.slack.com/events/team_join.
There was a problem hiding this comment.
Indeed, the document should be comprehensive but you can rely on the outputs by the Java SDK project at this moment:
There was a problem hiding this comment.
Thanks! I just tested it again to be sure and reverted the change now.
|
@srajiang If this PR looks good to you too, you can "squash and merge" this tomorrow! |
Summary
#1241 Replace instances of
console.logwhere you have access to the built-in Bolt loggerRequirements (place an
xin each[ ])