Skip to content

Commit 658e299

Browse files
committed
Add logs for debugging
1 parent f65f85b commit 658e299

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/api-service/lowcoder-infra/src/main/java/org/lowcoder/infra/serverlog/ServerLogService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ public Mono<Long> getApiUsageCount(String orgId, Boolean lastMonthOnly) {
5151
if(lastMonthOnly != null && lastMonthOnly) {
5252
Long startMonthEpoch = LocalDateTime.now().minusMonths(1).with(TemporalAdjusters.firstDayOfMonth()).toEpochSecond(ZoneOffset.UTC)*1000;
5353
Long endMonthEpoch = LocalDateTime.now().minusMonths(1).with(TemporalAdjusters.lastDayOfMonth()).toEpochSecond(ZoneOffset.UTC)*1000;
54+
System.out.println("startMonthEpoch is: " + startMonthEpoch);
55+
System.out.println("endMonthEpoch is: " + endMonthEpoch);
5456
return serverLogRepository.countByOrgIdAndCreateTimeBetween(orgId, startMonthEpoch, endMonthEpoch);
5557
}
5658
return serverLogRepository.countByOrgId(orgId);

0 commit comments

Comments
 (0)