From: David ‘Bombe’ Roden Date: Sat, 13 Oct 2012 08:07:00 +0000 (+0200) Subject: Fix logging. X-Git-Tag: 0.8.4^2~2 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d91ae2f3375d710ea5ef7a45e5416b520ae058c2;p=Sone.git Fix logging. --- 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 addbf7f..67884bd 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, String.format("Template was rendered in %dms.", ((finish - start) / 1000) / 1000.0)); + logger.log(Level.FINEST, String.format("Template was rendered in %.2fms.", ((finish - start) / 1000) / 1000.0)); } catch (RedirectException re1) { return new RedirectResponse(re1.getTarget()); }