Log decision to insert a redirect.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sat, 17 Mar 2012 12:09:00 +0000 (13:09 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sat, 17 Mar 2012 12:09:00 +0000 (13:09 +0100)
src/de/todesbaum/jsite/application/ProjectInserter.java

index 9471175..f447eed 100644 (file)
@@ -283,6 +283,7 @@ public class ProjectInserter implements FileScannerListener, Runnable {
                        /* check if file was modified. */
                        if (file.getHash().equals(fileOption.getLastInsertHash())) {
                                /* only insert a redirect. */
+                               logger.log(Level.FINE, String.format("Inserting redirect to edition %d for %s.", fileOption.getLastInsertEdition(), filename));
                                return new RedirectFileEntry(filename, fileOption.getMimeType(), "SSK@" + project.getRequestURI() + "/" + project.getPath() + "-" + fileOption.getLastInsertEdition() + "/" + filename);
                        }
                        fileOption.setCurrentHash(file.getHash());