summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <a3li@gentoo.org>2011-11-19 19:14:07 +0100
committerAlex Legler <a3li@gentoo.org>2011-11-19 19:14:07 +0100
commitdf013518808ca1fdfeda0be82168e08040d65066 (patch)
tree3d6caa70dbda279185a620354b615c366a5b8f08
parentShow comments again in ascending order of creation (diff)
downloadglsamaker-df013518808ca1fdfeda0be82168e08040d65066.tar.gz
glsamaker-df013518808ca1fdfeda0be82168e08040d65066.tar.bz2
glsamaker-df013518808ca1fdfeda0be82168e08040d65066.zip
Fix method name in log_error to display exception text instead of class name for a second time
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index ebb0570..e839aeb 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -25,7 +25,7 @@ class ApplicationController < ActionController::Base
protected
def log_error(error)
caller[0] =~ /`([^']*)'/ and where = $1
- logger.error "[#{where}] #{error.class}: #{error.to_s}"
+ logger.error "[#{where}] #{error.class}: #{error.message}"
logger.info error.backtrace.join("\n")
#ExceptionNotifier::Notifier.exception_notification(request.env, error).deliver
end