diff options
Diffstat (limited to '')
-rw-r--r-- | lib/feed2imap/feed2imap.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/feed2imap/feed2imap.rb b/lib/feed2imap/feed2imap.rb index e8e45a0..78a443c 100644 --- a/lib/feed2imap/feed2imap.rb +++ b/lib/feed2imap/feed2imap.rb @@ -103,6 +103,7 @@ class Feed2Imap ths = [] @config.feeds.each do |f| ths << Thread::new do + url = f.url begin lastcheck = @cache.get_last_check(f.name) if f.needfetch(lastcheck) @@ -116,11 +117,11 @@ class Feed2Imap end rescue Timeout::Error loggermon.synchronize do - @logger.fatal("Timeout::Error while fetching #{f.url}: #{$!}") + @logger.fatal("Timeout::Error while fetching #{url}: #{$!}") end rescue loggermon.synchronize do - @logger.fatal("Error while fetching #{f.url}: #{$!}") + @logger.fatal("Error while fetching #{url}: #{$!}") end end end |