Puma Logging Differently In Production vs Development Environments

907 Views Asked by At

Puma is logging differently when running the server in a production environment versus a development environment. Does anyone know why this might be happening?

1

There are 1 best solutions below

0
On

did you check production.rb? you can open production.rb and then found config.log_level = :info

you can change value of :info to :debug if you want do that.

but when you coding on development environment, must need :debug in development.rb because you finding some bug or something wrong. computer was not lie, log is good evidence for investgatation bug.

why log level is :info in production environment. if you set debug to log level, your production system will face error No space left on device and then many system need high level than :debug level.

:info level is higher than :debug. this mean that :info generate log less than :debug, and generate short log.