summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorlnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972>2006-01-11 10:11:54 +0000
committerlnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972>2006-01-11 10:11:54 +0000
commit075db8674b9e8e31585f57dc7f02f2d03a45f045 (patch)
tree549181cecf34d7f7e5ab46851d9f031be7407f2c /lib
parente6e6069f5375631c28dbb41077d42e350135d995 (diff)
downloadfeed2imap-075db8674b9e8e31585f57dc7f02f2d03a45f045.tar.gz
feed2imap-075db8674b9e8e31585f57dc7f02f2d03a45f045.tar.bz2
feed2imap-075db8674b9e8e31585f57dc7f02f2d03a45f045.zip
log fixes
git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@77 f70e237a-67f3-0310-a06c-d2b8a7116972
Diffstat (limited to '')
-rw-r--r--lib/feed2imap/feed2imap.rb5
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