views:

23

answers:

1

Is it possible to just log partial times without turning on all logging with?

config.log_level = :debug

I just want to see partial times as all the others seem under control and don't want to slow down the application to get this logging.

A: 

It's not possible. You can change the log level sometimes, but you can't do it to some controller.

shingara
I am happy for all controllers to have it - it is just that I don't need the SQL and other logging. Is that possible?
Ian Connor
yes, You can define the ActiveRecord::Base.logger.level = :info
shingara
It seems in the production.rb file, the logger is not set and comes up as nil so I cannot set the level.
Ian Connor