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

debugging slow middleware #373

Closed
matthewmueller opened this issue Dec 4, 2014 · 3 comments
Closed

debugging slow middleware #373

matthewmueller opened this issue Dec 4, 2014 · 3 comments
Labels

Comments

@matthewmueller
Copy link
Contributor

It seems like the logging in koa-compose did this, but it's been removed. Has anyone come up with another solution for this?

@tj
Copy link
Member

tj commented Dec 4, 2014

Ahh yup it used to, but I didn't really like how it was special-cased in koa-compose.

Somewhat a dupe of #219

Might hack on that stuff tonight. Out of our options I still think wrapping middleware is the most elegant solution, since it just utilizes the natural call stack flow provided by generators.

@tj tj closed this as completed Dec 4, 2014
@tj
Copy link
Member

tj commented Dec 4, 2014

but for now you could always just stick a few console.log's in koa-compose. To wrap correctly we'll likely have to move koa-compose into core

@matthewmueller
Copy link
Contributor Author

sweet, yah will do. thanks!

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

No branches or pull requests

2 participants