I’m trying to find a little bug and need the logger inside one of my models for it. Whenever I use
logger.debug "something"
inside a model, the message is put in the log but I get a 500 Server Error page. Everything is normal without the logger.debug line.
I set
config.log_level = :debug
inside the environments/production.rb file and set the correct file permissions for the log but can’t seem to find the problem.
Inside the model the
loggerobject is not available by default. Useinstead…