Skip to content

Commit

Permalink
Adding exception notifier, warbler, solr_wrapper, closes #232, closes #…
Browse files Browse the repository at this point in the history
…231, closes #230
  • Loading branch information
sandbergja committed Jan 6, 2020
1 parent 3dfc976 commit 569d371
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,6 @@ gem 'ebsco-eds', :github => 'sandbergja/edsapi-ruby'
gem 'evergreen_holdings', '>=0.3.0'
gem 'blacklight-citeproc', '>=0.0.4'
gem 'rails-i18n'
gem 'exception_notification'
gem 'warbler', '>=1.4.0'
gem 'solr_wrapper'
24 changes: 22 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ GEM
erubi (1.9.0)
evergreen_holdings (0.3.0)
nokogiri (~> 1.10.4)
exception_notification (4.4.0)
actionmailer (>= 4.0, < 7)
activesupport (>= 4.0, < 7)
execjs (2.7.0)
faraday (0.17.3)
multipart-post (>= 1.2, < 3)
Expand All @@ -186,6 +189,8 @@ GEM
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
jruby-jars (9.2.9.0)
jruby-rack (1.1.21)
kaminari (1.1.1)
activesupport (>= 4.1.0)
kaminari-actionview (= 1.1.1)
Expand Down Expand Up @@ -222,7 +227,7 @@ GEM
nokogiri (1.10.7-java)
orm_adapter (0.5.0)
popper_js (1.14.5)
public_suffix (4.0.2)
public_suffix (4.0.3)
puma (4.3.1-java)
nio4r (~> 2.0)
rack (2.0.8)
Expand Down Expand Up @@ -268,10 +273,12 @@ GEM
responders (3.0.0)
actionpack (>= 5.0)
railties (>= 5.0)
retriable (3.1.2)
rsolr (2.2.1)
builder (>= 2.1.2)
faraday (>= 0.9.0)
rubyzip (2.0.0)
ruby-progressbar (1.10.1)
rubyzip (1.3.0)
sass (3.7.4)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
Expand All @@ -286,6 +293,11 @@ GEM
selenium-webdriver (3.142.7)
childprocess (>= 0.5, < 4.0)
rubyzip (>= 1.2.2)
solr_wrapper (2.1.0)
faraday
retriable
ruby-progressbar
rubyzip
sprockets (3.7.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
Expand All @@ -307,6 +319,11 @@ GEM
thread_safe (~> 0.1)
tzinfo-data (1.2019.3)
tzinfo (>= 1.0.0)
warbler (2.0.5)
jruby-jars (>= 9.0.0.0)
jruby-rack (>= 1.1.1, < 1.3)
rake (>= 10.1.0)
rubyzip (~> 1.0, < 1.4)
warden (1.2.8)
rack (>= 2.0.6)
webdrivers (4.2.0)
Expand Down Expand Up @@ -344,6 +361,7 @@ DEPENDENCIES
dotenv-rails
ebsco-eds!
evergreen_holdings (>= 0.3.0)
exception_notification
jbuilder (~> 2.7)
jquery-rails
material_design_icons
Expand All @@ -353,9 +371,11 @@ DEPENDENCIES
rsolr (>= 1.0, < 3)
sass-rails (~> 5.1.0)
selenium-webdriver
solr_wrapper
turbolinks (~> 5)
twitter-typeahead-rails (= 0.11.1.pre.corejavascript)
tzinfo-data
warbler (>= 1.4.0)
webdrivers
webpacker (~> 4.0)

Expand Down
9 changes: 8 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@

# Use the lowest log level to ensure availability of diagnostic information
# when problems arise.
config.log_level = :debug
config.log_level = :warning

config.middleware.use ExceptionNotification::Rack,
email: {
email_prefix: '[FINDIT ERROR] ',
sender_address: %{"libref" <[email protected]>},
exception_recipients: %w{[email protected]},
}

# Prepend all log lines with the following tags.
config.log_tags = [ :request_id ]
Expand Down

0 comments on commit 569d371

Please sign in to comment.