From 6e87878e3d8275e0e757d43e45737bcc2a5b117f Mon Sep 17 00:00:00 2001 From: Gurkengewuerz Date: Mon, 3 Jul 2017 23:43:44 +0200 Subject: [PATCH] fixed info --- src/main/java/de/gurkengewuerz/termbin/Server/APIHandler.java | 2 +- .../java/de/gurkengewuerz/termbin/Server/DataHandler.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/gurkengewuerz/termbin/Server/APIHandler.java b/src/main/java/de/gurkengewuerz/termbin/Server/APIHandler.java index 0e37804..b841eb2 100644 --- a/src/main/java/de/gurkengewuerz/termbin/Server/APIHandler.java +++ b/src/main/java/de/gurkengewuerz/termbin/Server/APIHandler.java @@ -25,7 +25,7 @@ public class APIHandler extends AbstractHandler { @Override public void handle(String s, Request request, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws IOException, ServletException { Logger.getLogger(getClass().getName()).log(Level.INFO, "API Request by " + request.getHeader("User-Agent") + " " + request.getRemoteAddr() + "@" + s); - Termbin.getAccesslog().log(Level.INFO, request.getRemoteAddr() + " - - " + request.getHeader("User-Agent") + " - " + s); + Termbin.getAccesslog().log(Level.INFO, request.getRemoteAddr() + " - - " + request.getHeader("User-Agent") + " - api - " + s); if (Termbin.getConfig().isBanned(request.getRemoteAddr())) { request.setHandled(true); diff --git a/src/main/java/de/gurkengewuerz/termbin/Server/DataHandler.java b/src/main/java/de/gurkengewuerz/termbin/Server/DataHandler.java index f35f4e5..4b93d26 100644 --- a/src/main/java/de/gurkengewuerz/termbin/Server/DataHandler.java +++ b/src/main/java/de/gurkengewuerz/termbin/Server/DataHandler.java @@ -21,8 +21,8 @@ public class DataHandler extends AbstractHandler { @Override public void handle(String s, Request request, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws IOException, ServletException { - Logger.getLogger(getClass().getName()).log(Level.INFO, "API Request by " + request.getHeader("User-Agent") + " " + request.getRemoteAddr() + "@" + s); - Termbin.getAccesslog().log(Level.INFO, request.getRemoteAddr() + " - - " + request.getHeader("User-Agent") + " - " + s); + Logger.getLogger(getClass().getName()).log(Level.INFO, "DATA Request by " + request.getHeader("User-Agent") + " " + request.getRemoteAddr() + "@" + s); + Termbin.getAccesslog().log(Level.INFO, request.getRemoteAddr() + " - - " + request.getHeader("User-Agent") + " - data - " + s); if (Termbin.getConfig().isBanned(request.getRemoteAddr())) { request.setHandled(true);