You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2017/05/15 15:43:58 UTC
[whimsy] branch master updated: Log the fetches
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new b718acf Log the fetches
b718acf is described below
commit b718acf054d7abfdab4dc915a248c1c8b7e4ed0d
Author: Sebb <se...@apache.org>
AuthorDate: Mon May 15 16:43:57 2017 +0100
Log the fetches
---
tools/site-scan.rb | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index bcc5fc1..fe6d075 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -34,7 +34,7 @@ class Cache
def get(id, url)
if not @enabled
uri, res = fetch(url)
- return uri, res.body
+ return uri, res.body, 'nocache'
end
age, lastmod, uri, data = read_cache(id)
if age < minage
@@ -131,7 +131,8 @@ end
#########################################################################
def parse(id, site, name)
- uri, response = $cache.get(id, site)
+ uri, response, status = $cache.get(id, site)
+ $stderr.puts "#{id} #{uri} #{status}"
doc = Nokogiri::HTML(response)
# default data
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].