From 212254564c86676fe29a5cd167bf2e89c219e1ca Mon Sep 17 00:00:00 2001 From: afitzek Date: Thu, 2 Feb 2012 07:44:54 +0000 Subject: + write old statistic message into log file as info git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@913 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../src/main/java/at/gv/egiz/pdfas/web/servlets/SignServlet.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/SignServlet.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/SignServlet.java index c60ecf0..4500b8e 100644 --- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/SignServlet.java +++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/SignServlet.java @@ -402,13 +402,15 @@ public class SignServlet extends HttpServlet // afitzek: moved to DataURL to provide status information OK - ERROR // for performance measurement - /*if (statLog.isInfoEnabled()) { + if (statLog.isInfoEnabled()) { long endTime = System.currentTimeMillis(); // String toReport = "SIGN;" + si.mode + ";" + si.filename + ";"+ fileSize + ";" + String toReport = "SIGN;" + si.mode + ";" + si.connector + ";" + si.pdfDataSource.getLength() + ";" + (endTime - startTime); - statLog.info(toReport); - }*/ + //statLog.info(toReport); + // afitzek: save old statistik into log file + log.info(toReport); + } } catch (PresentableException e) { -- cgit v1.2.3