From 658e29938609a2800e98a90e36524ce43d0d4fc9 Mon Sep 17 00:00:00 2001 From: Abdul Qadir Date: Tue, 27 Feb 2024 20:44:59 +0500 Subject: [PATCH] Add logs for debugging --- .../java/org/lowcoder/infra/serverlog/ServerLogService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/api-service/lowcoder-infra/src/main/java/org/lowcoder/infra/serverlog/ServerLogService.java b/server/api-service/lowcoder-infra/src/main/java/org/lowcoder/infra/serverlog/ServerLogService.java index e975ba407..b45708a20 100644 --- a/server/api-service/lowcoder-infra/src/main/java/org/lowcoder/infra/serverlog/ServerLogService.java +++ b/server/api-service/lowcoder-infra/src/main/java/org/lowcoder/infra/serverlog/ServerLogService.java @@ -51,6 +51,8 @@ public Mono getApiUsageCount(String orgId, Boolean lastMonthOnly) { if(lastMonthOnly != null && lastMonthOnly) { Long startMonthEpoch = LocalDateTime.now().minusMonths(1).with(TemporalAdjusters.firstDayOfMonth()).toEpochSecond(ZoneOffset.UTC)*1000; Long endMonthEpoch = LocalDateTime.now().minusMonths(1).with(TemporalAdjusters.lastDayOfMonth()).toEpochSecond(ZoneOffset.UTC)*1000; + System.out.println("startMonthEpoch is: " + startMonthEpoch); + System.out.println("endMonthEpoch is: " + endMonthEpoch); return serverLogRepository.countByOrgIdAndCreateTimeBetween(orgId, startMonthEpoch, endMonthEpoch); } return serverLogRepository.countByOrgId(orgId);