up
This commit is contained in:
@@ -144,7 +144,9 @@ public class MainVerticle extends AbstractVerticle {
|
||||
long start = System.currentTimeMillis();
|
||||
String method = ctx.request().method().name();
|
||||
String path = ctx.request().path();
|
||||
String remoteIp = ctx.request().remoteAddress() != null ? ctx.request().remoteAddress().host() : "unknown";
|
||||
final String remoteIp = ctx.get("realClientIp") != null ?
|
||||
ctx.get("realClientIp") :
|
||||
ctx.request().remoteAddress().host();
|
||||
ctx.addBodyEndHandler(v -> {
|
||||
long duration = System.currentTimeMillis() - start;
|
||||
log.info("{} {} - {} ms - {} - {}",
|
||||
|
||||
Reference in New Issue
Block a user