From: David ‘Bombe’ Roden Date: Tue, 9 Oct 2012 07:18:30 +0000 (+0200) Subject: Fix logging. X-Git-Tag: 0.8.4^2~6 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ef304a97a23d2f6162d38e65550988f22d16af04;p=Sone.git Fix logging. Thanks, digger3, for noticing this one! --- diff --git a/src/main/java/net/pterodactylus/sone/web/page/FreenetTemplatePage.java b/src/main/java/net/pterodactylus/sone/web/page/FreenetTemplatePage.java index 97ee53b..addbf7f 100644 --- a/src/main/java/net/pterodactylus/sone/web/page/FreenetTemplatePage.java +++ b/src/main/java/net/pterodactylus/sone/web/page/FreenetTemplatePage.java @@ -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()); }