aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <a3li@gentoo.org>2011-10-14 00:43:05 +0200
committerAlex Legler <a3li@gentoo.org>2011-10-14 00:43:05 +0200
commit7c91bad852e4e462276d17c5d8e2949d3c9f09fc (patch)
treeb9cba38db1ad9cd068560061b28e054d1f3968c9 /app/controllers/application_controller.rb
parentAdd exception_notification plugin (diff)
downloadglsamaker-7c91bad852e4e462276d17c5d8e2949d3c9f09fc.tar.gz
glsamaker-7c91bad852e4e462276d17c5d8e2949d3c9f09fc.tar.bz2
glsamaker-7c91bad852e4e462276d17c5d8e2949d3c9f09fc.zip
Add manual exception notification in log_error
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index bef470a..0a55a00 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -30,5 +30,6 @@ class ApplicationController < ActionController::Base
caller[0] =~ /`([^']*)'/ and where = $1
logger.error "[#{where}] #{error.class}: #{error.to_s}"
logger.info error.backtrace.join("\n")
+ ExceptionNotifier::Notifier.exception_notification(request.env, error).deliver
end
end