Skip to content
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

Create a Developer Mode #714

Closed
4 tasks done
stevengill opened this issue Dec 17, 2020 · 2 comments
Closed
4 tasks done

Create a Developer Mode #714

stevengill opened this issue Dec 17, 2020 · 2 comments
Assignees
Labels
enhancement M-T: A feature request for new functionality
Milestone

Comments

@stevengill
Copy link
Member

Description

Add a option to App that allows developers to enable Developer Mode.

Some things Developer Mode could do:

  • Enable SocketMode
  • Enable debug level logging
  • Log out all received payloads (maybe contain sensitive info like tokens)

Other suggestions?

What type of issue is this? (place an x in one of the [ ])

  • enhancement (feature request)

Requirements (place an x in each of the [ ])

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.
@stevengill stevengill added the enhancement M-T: A feature request for new functionality label Dec 17, 2020
@mwbrooks
Copy link
Member

I suppose there are various ways that we could enable developer mode:

  • Add an option to App?
  • Could we leverage environment variables?
    • When NODE_ENV is unset?

Enable SocketMode

Why is it important to enable socket mode in developer mode?

@stevengill
Copy link
Member Author

stevengill commented Jan 11, 2021

Initial support:

  • logLevel set to debug (overridable)
  • socket mode enabled (overridable)
  • custom failure handler with error output on oauth (can pass your own if you don't want to use this one)
  • log the body of every incoming request

Why is it important to enable socket mode in developer mode?

It is easier to get setup without having to use ngrok to start deving. That is why @aoberoi and I discussed setting socketMode as the default in Developer Mode. It can be overridden easily though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement M-T: A feature request for new functionality
Projects
None yet
Development

No branches or pull requests

2 participants