Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get full Stack Trace on Heroku

My api is returning an error but, is not showing a full stack trace:

2018-04-20T12:32:00.673008+00:00 heroku[router]: at=info method=PUT [...] status=500 bytes=243 protocol=https

I don't know why I'm getting this 500, since it works at development. I guess is about some missing add-on on Heroku or something like this, but I cant know if I don't get the 500 stack trace.

I already have a config.log_level = :debug at my production.rb. Is it possible to see full stack trace at Heroku?

My project back-end uses Ruby on Rails 5.

like image 757
Kilmer Luiz Aleluia Avatar asked Nov 07 '22 08:11

Kilmer Luiz Aleluia


1 Answers

From command line run:

heroku logs -n 200

after -n number of lines you need . check this out for more information.

like image 57
Mezbah Avatar answered Nov 10 '22 00:11

Mezbah