Log hash after fetching. master
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 16 Mar 2009 23:10:59 +0000 (00:10 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 16 Mar 2009 23:10:59 +0000 (00:10 +0100)
src/net/pterodactylus/arachne/core/URLFetcher.java

index ea109d0..59ad623 100644 (file)
@@ -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);
                }