Skip to content

Commit

Permalink
Add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
kezhenxu94 committed Sep 9, 2024
1 parent 4c8390a commit 50a8b17
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public class SampleFamily {
static SampleFamily build(RunningContext ctx, Sample... samples) {
Preconditions.checkNotNull(samples);
Preconditions.checkArgument(samples.length > 0);
log.info("Samples size: %d", samples.length);
samples = Arrays.stream(samples).filter(sample -> !Double.isNaN(sample.getValue())).toArray(Sample[]::new);
if (samples.length == 0) {
return EMPTY;
Expand Down

0 comments on commit 50a8b17

Please sign in to comment.