Skip to content

Commit 5694744

Browse files
committed
fix: all logs
1 parent 7bd7f34 commit 5694744

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/src/main/java/ch/xxx/trader/usecase/services/CoinbaseService.java

+2
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@ private void createCbIntervalAvg(boolean isDay) {
245245
false);
246246
final Calendar now = Calendar.getInstance();
247247
now.setTime(Date.from(LocalDate.now().atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()));
248+
final SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy");
249+
LOG.info("isDay: {}, TimeFrame.Begin: {}, TimeFrame.End: {}, now: {}", isDay, sdf.format(timeFrame.begin().getTime()), sdf.format(timeFrame.end().getTime()), sdf.format(now.getTime()));
248250
this.createTimeFrames(timeFrame, now).stream()
249251
.forEachOrdered(timeFrame1 -> this.processTimeFrame(timeFrame1, isDay));
250252
var logStmt = String.format("Prepared Coinbase %s Data Time:", isDay ? "Daily" : "Hourly");

0 commit comments

Comments
 (0)