Skip to content

Commit

Permalink
fix logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mucsi96 committed Jul 23, 2023
1 parent da3a2f7 commit 4627b63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public Optional<Weight> getTodayWeight() {
log.info("Getting today weight from {} to {}", startTime, endTime);
List<Weight> weights = weightRepository.findAllByCreatedAtBetween(startTime, endTime);
Optional<Weight> result = weights.stream().findFirst();
log.info("Got {}", result.isPresent() ? result.get().getValue() : '?');
log.info("Got {}", result.isPresent() ? result.get().getValue() : "null");
return result;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private Optional<Weight> getFirstMeasureValue(WithingsGetMeasureResponseBody mea
public Optional<Weight> getTodayWeight(OAuth2AuthorizedClient authorizedClient) {
log.info("Getting today first weight measure");
Optional<Weight> result = getFirstMeasureValue(getMeasure(authorizedClient));
log.info("Got {}", result.isPresent() ? result.get().getValue() : '?');
log.info("Got {}", result.isPresent() ? result.get().getValue() : "null");
return result;
}
}

0 comments on commit 4627b63

Please sign in to comment.