question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generated project does not show error stacktraces even in DEV mode

See original GitHub issue

fastify 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:

image

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:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vitaletscommented, Jan 9, 2020

@vitalets if you want to make a PR to pino-colada to also check for obj.err.stack, I’d happily accept it. There is only one place where the check happens.

Done: https://github.com/lrlna/pino-colada/pull/32

0reactions
stale[bot]commented, Oct 21, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found