fixed info
This commit is contained in:
parent
e457a6c267
commit
6e87878e3d
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user