From: David ‘Bombe’ Roden Date: Mon, 16 Mar 2009 23:10:59 +0000 (+0100) Subject: Log hash after fetching. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;p=arachne.git Log hash after fetching. --- diff --git a/src/net/pterodactylus/arachne/core/URLFetcher.java b/src/net/pterodactylus/arachne/core/URLFetcher.java index ea109d0..59ad623 100644 --- a/src/net/pterodactylus/arachne/core/URLFetcher.java +++ b/src/net/pterodactylus/arachne/core/URLFetcher.java @@ -16,6 +16,7 @@ import net.pterodactylus.arachne.parser.Parser; import net.pterodactylus.arachne.parser.ParserFactory; import net.pterodactylus.arachne.parser.ParserListener; import de.ina.util.io.MessageDigestInputStream; +import de.ina.util.number.Hex; import de.ina.util.validation.Validation; /** @@ -127,6 +128,7 @@ class URLFetcher implements Runnable, ParserListener { } parser.parse(this, hashInputStream, "UTF-8"); hash = messageDigest.digest(); + logger.log(Level.FINE, "Hashed “" + url + "” to “" + Hex.toHex(hash) + "”."); } catch (IOException ioe1) { logger.log(Level.WARNING, "Could not fetch “" + url + "”.", ioe1); }