Fix logging.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 9 Oct 2012 07:18:30 +0000 (09:18 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 9 Oct 2012 07:18:42 +0000 (09:18 +0200)
Thanks, digger3, for noticing this one!

src/main/java/net/pterodactylus/sone/web/page/FreenetTemplatePage.java

index 97ee53b..addbf7f 100644 (file)
@@ -156,7 +156,7 @@ public class FreenetTemplatePage implements FreenetPage, LinkEnabledCallback {
                        long start = System.nanoTime();
                        processTemplate(request, templateContext);
                        long finish = System.nanoTime();
-                       logger.log(Level.FINEST, "Template was rendered in %dms.", ((finish - start) / 1000) / 1000.0);
+                       logger.log(Level.FINEST, String.format("Template was rendered in %dms.", ((finish - start) / 1000) / 1000.0));
                } catch (RedirectException re1) {
                        return new RedirectResponse(re1.getTarget());
                }