This commit is contained in:
2026-04-28 19:26:24 +03:00
parent 664092f415
commit e7f135e8c1
2 changed files with 14 additions and 1 deletions

View File

@@ -240,7 +240,7 @@ function formatDate(dateStr: string) {
onMounted(() => { onMounted(() => {
loadDashboardData(); loadDashboardData();
interval = window.setInterval(loadDashboardData, 30000); interval = window.setInterval(loadDashboardData, 10000);
}); });
onUnmounted(() => { onUnmounted(() => {

View File

@@ -140,6 +140,19 @@ public class MainVerticle extends AbstractVerticle {
} }
}); });
router.route().handler(ctx -> {
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";
ctx.addBodyEndHandler(v -> {
long duration = System.currentTimeMillis() - start;
log.info("{} {} - {} ms - {} - {}",
method, path, duration, ctx.response().getStatusCode(), remoteIp);
});
ctx.next();
});
// ------ Раздаём Vue статику ------ // ------ Раздаём Vue статику ------
router.route("/assets/*").handler(StaticHandler.create("webroot/assets")); router.route("/assets/*").handler(StaticHandler.create("webroot/assets"));