diff options
-rw-r--r-- | Gemfile | 2 | ||||
-rw-r--r-- | Gemfile.lock | 3 | ||||
-rw-r--r-- | config/initializers/glsamaker.rb.sample | 6 |
3 files changed, 11 insertions, 0 deletions
@@ -26,6 +26,8 @@ gem 'thin' # Deploy with Capistrano gem 'capistrano' +gem 'exception_notification' + group :development do # To use debugger gem 'ruby-debug' diff --git a/Gemfile.lock b/Gemfile.lock index 8d1daae..911e34d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -53,6 +53,8 @@ GEM diff-lcs (1.1.3) erubis (2.7.0) eventmachine (0.12.10) + exception_notification (2.5.2) + actionmailer (>= 3.0.4) execjs (1.2.4) multi_json (~> 1.0) fastercsv (1.5.4) @@ -168,6 +170,7 @@ DEPENDENCIES ci_reporter coffee-rails (~> 3.1.0) diff-lcs + exception_notification fastercsv json kramdown diff --git a/config/initializers/glsamaker.rb.sample b/config/initializers/glsamaker.rb.sample index 38bb156..0872534 100644 --- a/config/initializers/glsamaker.rb.sample +++ b/config/initializers/glsamaker.rb.sample @@ -38,3 +38,9 @@ GLSAMAKER_BUGZIE_PW = nil # Location of xmlindent(1) GLSAMAKER_XMLINDENT = "/usr/bin/xmlindent" + +# Enabling exception notices +#Glsamaker::Application.config.middleware.use ExceptionNotifier, +# :email_prefix => "[GLSAMaker Error] ", +# :sender_address => %{"GLSAMaker" <#{GLSAMAKER_FROM_EMAIL}>}, +# :exception_recipients => %w{GLSAMAKER_ADMIN_EMAIL}
\ No newline at end of file |