Update controller.rb

Add console logger output