@Override public F.Promise<Result> onHandlerNotFound(Http.RequestHeader requestHeader) { CustomLogger.warn( requestHeader.remoteAddress(), "Handler not Found for: " + requestHeader.uri()); return super.onHandlerNotFound(requestHeader); }
@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); }
@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); }