-
Notifications
You must be signed in to change notification settings - Fork 662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Way to disable message content being logged #1751
Way to disable message content being logged #1751
Comments
Thanks for reporting this. This could be improved on the underlying web-api package side (https://github.com/slackapi/node-slack-sdk/blob/%40slack/web-api%407.0.2/packages/web-api/src/errors.ts#L79), so let me transfer this to node-slack-sdk repo. |
Hi! New contributor here 👋 Upon reviewing this issue, I noticed that -
Potential solution -
In my opinion, opting for the first solution seems most sensible. What are your thoughts on this approach? |
Thanks for the comment! I agree that the simplest solution would be to provide an opt-out option, allowing for the removal of the |
Hi,
I am looking for a way to never output / always hide the message contents from the application logs. If such way already exists, I would like to know how.
Use-case
I am building an app which contains sensitive content in the messages that I do not want to be logged in the application logs.
My LogLevel is 'INFO'.
I recently saw some API failure logs in my application, which in turn resulted in the message data being logged in the app logs.
Reproducible in:
The Slack SDK version
Node.js runtime version
v16.8.1
OS info
Red Hat Enterprise Linux 8
Steps to reproduce:
Expected result:
Application logs contain message data.
Actual result:
I want to exclude this message data from the application logs.
Requirements
For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. 🙇
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
The text was updated successfully, but these errors were encountered: