Skip to content

Commit

Permalink
Logging another place Biodiversity is being called from
Browse files Browse the repository at this point in the history
  • Loading branch information
LocoDelAssembly committed Aug 29, 2020
1 parent 4ab5679 commit b7e955d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/vendor/biodiversity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,14 @@ def parse
n, @citation = preparse

begin
Rails.logger.info "::Biodiversity::Parser [preparse=#{n.inspect}]"
Rails.logger.flush
@parse_result ||= ::Biodiversity::Parser.parse(n)
Rails.logger.info "::Biodiversity::Parser [RETURNED]"
Rails.logger.flush
rescue NoMethodError => e
Rails.logger.info "::Biodiversity::Parser [RETURNED (rescue)]"
Rails.logger.flush
case e.message
when /canonical/
@parseable = false
Expand Down

0 comments on commit b7e955d

Please sign in to comment.