up
This commit is contained in:
@@ -144,7 +144,9 @@ public class MainVerticle extends AbstractVerticle {
|
|||||||
long start = System.currentTimeMillis();
|
long start = System.currentTimeMillis();
|
||||||
String method = ctx.request().method().name();
|
String method = ctx.request().method().name();
|
||||||
String path = ctx.request().path();
|
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 -> {
|
ctx.addBodyEndHandler(v -> {
|
||||||
long duration = System.currentTimeMillis() - start;
|
long duration = System.currentTimeMillis() - start;
|
||||||
log.info("{} {} - {} ms - {} - {}",
|
log.info("{} {} - {} ms - {} - {}",
|
||||||
|
|||||||
Reference in New Issue
Block a user