Closed seratch closed 1 year ago
@seratch - Here's a stab at adding more logs:
apps.connections.open
files.uploadV2
Still need to redact bearer tokens from headers as well.
@srajiang Wow, your code already looks great! https://github.com/slackapi/node-slack-sdk/commit/d619ce0e290cc8cb3f1500282717ba24d0d5e410
As mentioned at https://github.com/slackapi/bolt-js/issues/1550 , debugging the web-api client ca be hard as its debug-level does not provide sufficient information.
When your app performs an
apps.connections.open
API call, the only information you can receive is blow:Like Python and Java SDKs already do, we can add more meaningful information to the debug-level logging. One thing that we should be careful would be redact token data from the logging content. Refer to the following existing code for more details:
Packages:
Select all that apply:
@slack/web-api
@slack/rtm-api
@slack/webhooks
@slack/oauth
@slack/socket-mode
@slack/types
Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.