Exemplo n.º 1
0
 @Override
 public F.Promise<Result> onHandlerNotFound(Http.RequestHeader requestHeader) {
   CustomLogger.warn(
       requestHeader.remoteAddress(), "Handler not Found for: " + requestHeader.uri());
   return super.onHandlerNotFound(requestHeader);
 }
Exemplo n.º 2
0
 @Override
 public F.Promise<Result> onBadRequest(Http.RequestHeader requestHeader, String s) {
   CustomLogger.warn(requestHeader.remoteAddress(), "Bad Request: " + Json.toJson(requestHeader));
   return super.onBadRequest(requestHeader, s);
 }
Exemplo n.º 3
0
 @Override
 public F.Promise<Result> onError(Http.RequestHeader requestHeader, Throwable throwable) {
   CustomLogger.error(
       requestHeader.remoteAddress(), "Internal Server Error: " + Json.toJson(requestHeader));
   return super.onError(requestHeader, throwable);
 }