lib/feedjira/feed_entry_utilities.rb in feedjira-2.1.0 vs lib/feedjira/feed_entry_utilities.rb in feedjira-2.1.1

- old
+ new

@@ -1,5 +1,7 @@ +# rubocop:disable Style/Documentation +# rubocop:disable Style/DocumentationMethod module Feedjira module FeedEntryUtilities include Enumerable include DateTimeUtilities @@ -7,11 +9,12 @@ @published ||= @updated end def parse_datetime(string) DateTime.parse(string).feed_utils_to_gm_time - rescue - warn "Failed to parse date #{string.inspect}" + rescue StandardError => e + Feedjira.logger.warn { "Failed to parse date #{string.inspect}" } + Feedjira.logger.warn(e) nil end ## # Returns the id of the entry or its url if not id is present, as some