I use tons of middleware but I never like I wish that the TypeScript types would update for requests that are after the middleware. You always have to do like an if statement to check if it's specifically there which is probably better type practice. We'll throw that on the books middleware one's coming up what else do we have here about logs? Take a take a couple of minutes and maybe add some better logging to your app yeah absolutely all right thanks for tuning in catch you on Wednesday.
In this Hasty Treat, Scott and Wes talk about the reasons why you should log errors, how it’s not just for debugging, where to save logs, and apps and packages to help with logging.
Sentry - Sponsor
If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.
Show Notes
Tweet us your tasty treats