falcon icon indicating copy to clipboard operation
falcon copied to clipboard

Improving request logging.

Open AllanKlaus opened this issue 6 years ago • 11 comments

I'm trying to use falcon on production in one app that I'm creating. Now I'm blind of logs, I don't know what happen when I run the app it don't show any logs of requests only the database interactions.

I'm running my app using foreman with the command falcon serve -b http://0.0.0.0:9292. Everything is running on a container. I didn't change anything on the config/enviroment/production.rb it's running all the rails default.

Can someone help me with this?

AllanKlaus avatar Dec 12 '19 17:12 AllanKlaus

The simplest way to get more information is to run with --verbose.

That being said, it produces a lot of information.

We should probably provide a middle ground for just logging requests.

Logging like this impacts performance, so it's not by default.

A simple solution which works everywhere is to use a logging middleware.

I'll think about the best way to solve this issue.

ioquatix avatar Dec 12 '19 21:12 ioquatix

i will try it. thanks. If there is something that I can do to help, just let me know.

AllanKlaus avatar Dec 24 '19 13:12 AllanKlaus