Skip to content

Commit

Permalink
log level
Browse files Browse the repository at this point in the history
  • Loading branch information
goulven authored and goulven committed Dec 5, 2024
1 parent 3dadc2a commit d03de30
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,19 +154,19 @@ public void onProduct(Product data, VerticalConfig vConf) throws AggregationSkip
private boolean shouldExclude(Product data, VerticalConfig vConf) {
// On brand
if (StringUtils.isEmpty(data.brand())) {
dedicatedLogger.warn("Excluded because brand is missing : {}", data );
dedicatedLogger.info("Excluded because brand is missing : {}", data );
return true;
}

// On model
if (StringUtils.isEmpty(data.model())) {
dedicatedLogger.warn("Excluded because model is missing : {}", data );
dedicatedLogger.info("Excluded because model is missing : {}", data );
return true;
}

Set<String> attrKeys = data.getAttributes().getattributesAsStringKeys();
if (vConf.getRequiredAttributes() != null && !attrKeys.containsAll(vConf.getRequiredAttributes())) {
dedicatedLogger.warn("Excluded because attributes are missing : {}", data );
dedicatedLogger.info("Excluded because attributes are missing : {}", data );
return true;
}

Expand Down

0 comments on commit d03de30

Please sign in to comment.