Generated project does not show error stacktraces even in DEV mode
See original GitHub issuefastify generate
creates npm script "dev": "fastify start -l info -P app.js"
to run app in development mode. But in that mode no stacktraces are shown in logs:
This obviously unsuitable for development.
I’ve researched pino-colada
logger and found that it should show stacktraces only in error
or fatal
mode. But changing run script to fastify start -l error -P app.js
also does not help. It’s because pino-colada
expects stacktrace in obj.stack
but fastify writes it to obj.err.stack
.
Related discussion: https://github.com/lrlna/pino-colada/pull/30
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
How to Add Stacktrace or debug Option when Building ...
Run with --info or --debug option to get more log output. I suspect it has something to do with resource not found error....
Read more >no runtime error stacktraces showing up in devmode
any stack traces of errors encountered from the client code. When I run my GWT app, I don't see any third tab appearing...
Read more >Stack Trace: How to Debug Your Application With a ...
In short, stack traces and the type of errors they log can reveal various metrics related to your application as explained in the...
Read more >Magento 2 problem with static generation in developer mode
When all statics/classes are generated then no errors and everything works correctly until next generation is required. In other project (not ...
Read more >Enable Readable Stack Traces in Your Errors
In your browser, make sure that the dev console is open and perform an "Empty Cache and Hard Reload" to make sure the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Done: https://github.com/lrlna/pino-colada/pull/32
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.