How to debug on production?

How do I debug on a live server?

  1. I am getting stripe to work on our production server, but it’s throwing an error:
    {status: "500", message: "A server error occured, to see the error enable the DEBUG flag."}
  2. I could enable the debug flag, but then the whole production server is in debug mode
  3. How can I get the error message so I can investigate what’s going wrong?

I tried to enable web server logs, but they seem empty completely

I feel like I’m missing something obvious!

Community Page
Last updated: