Rails logger change from Debug to Warn

Viewed 28

My application runs in Heroku; recently, we have changed the Heroku LOG_LEVEL from DEBUG to WARN. But still, in some of the areas, I am using Rails.logger.info; I plan to change that info to warn or the higher log level as that data is not currently showing in the logs.

But the doubt here is I am logging some information, like :

Rails.logger.info "Client #{client_name}, has Enabled Payment Addon for the outlet"

So what will be the appropriate logger level to keep these kinds of information logs? Should I use the:

Puts "Client #{client_name}, has Enabled Payment Addon for the outlet"

, or can I go for:

Rails.logger.warn "Client #{client_name}, has Enabled Payment Addon for the outlet"

But can we consider this kind of information a warning?

0 Answers
Related