From 2976cbf5e8b6971ffa5138fec625f513eb1406d3 Mon Sep 17 00:00:00 2001 From: Tony Bowden Date: Mon, 15 May 2017 15:17:43 +0100 Subject: [PATCH] Use logger.warn for "No morph changes" message Then we get it properly in the logs. --- app.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.rb b/app.rb index ab0142c..157d6a9 100644 --- a/app.rb +++ b/app.rb @@ -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