app/controllers/application_controller.rb
# Logs an exception's contents, along with what page it was raised on.
Logs an exception's contents, along with what page it was raised on.
Logs an exception ' s contents along with what page it was raised on .
def log_error(exception, raised_on)
      current_user_string = ""
      current_user_string = (", User ID: " + @current_user.id.to_s) if @current_user
      logger.error "\n!!!!!!!!!!!!!!!!!! ERROR  BEGINS !!!!!!!!!!!!!!!!!!!!!!"
      logger.error exception
      logger.error ("Raised on: " + raised_on + current_user_string + "\n")
    end
def log_error ( exception , raised_on ) current_user_string = "" current_user_string = ( ", User ID: " + @current_user . id . to_s ) if @current_user logger . error "\n!!!!!!!!!!!!!!!!!! ERROR  BEGINS !!!!!!!!!!!!!!!!!!!!!!" logger . error exception logger . error ( "Raised on: " + raised_on + current_user_string + "\n" ) end
Logs an exception's contents, along with what page it was raised on.
Logs an exception ' s contents along with what page it was raised on .
exception
raised_on