Update application_controller.rb

add PUTS statement to logger.error