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

dev mode: log APP_MIDDLEWARE count #71

Open
chrisdickinson opened this issue Dec 15, 2020 · 2 comments
Open

dev mode: log APP_MIDDLEWARE count #71

chrisdickinson opened this issue Dec 15, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@chrisdickinson
Copy link
Contributor

Use case: if a user accidentally removes the APP_MIDDLEWARE export without expecting to, we should give them a heads up. We could do this by always logging the total app-attached middleware count on startup in dev mode, and additionally grepping the file for APP_MIDDLEWARE if the count is zero and logging a big message with steps to remedy the situation.

@ceejbot
Copy link
Contributor

ceejbot commented Dec 15, 2020

I sort of want the boltzmann:routes run target to grow a bit and export middleware info, though maybe at that point it's not very routes-y and would need another name.

@ceejbot ceejbot added the enhancement New feature or request label Dec 15, 2020
@chrisdickinson
Copy link
Contributor Author

I sort of want the boltzmann:routes run target to grow a bit and export middleware info, though maybe at that point it's not very routes-y and would need another name.

This is valuable, & might be worth tracking as a separate issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants