Skip to content

Commit

Permalink
Use logger.warn for "No morph changes" message
Browse files Browse the repository at this point in the history
Then we get it properly in the logs.
  • Loading branch information
tmtmtmtm committed May 15, 2017
1 parent 0f37831 commit 2976cbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def perform(country_slug, legislature_slug, source = nil)

if source
src = EveryPolitician::Instructions.new(legislature).source(source)
if src.current_data == source.fresh_data
warn "No morph changes for #{country_slug} #{legislature_slug} #{source}"
if src.current_data == src.fresh_data
logger.warn "No morph changes for #{country_slug}/#{legislature_slug}/#{source}"
return
end
end
Expand Down

0 comments on commit 2976cbf

Please sign in to comment.