Skip to content

Commit a6be0ab

Browse files
authored
Merge pull request lowcoder-org#718 from lowcoder-org/add-logs-to-debug-api-stats-failure
Add Logs For Debugging Prod Issue
2 parents e5bbd35 + 658e299 commit a6be0ab

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

+2
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)