From 2257173f299e8d0af6e28a19f87ab6036b75ef80 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 17 Mar 2009 00:10:59 +0100 Subject: [PATCH] Log hash after fetching. --- src/net/pterodactylus/arachne/core/URLFetcher.java | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.7.4