RED-9472: seperation of system rules
adding logs for bug investigation
This commit is contained in:
parent
a0b34894ee
commit
f22a7c450e
@ -63,6 +63,7 @@ public class RuleBuilderController implements RuleBuilderResource {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
var droolsValidation = droolsValidationService.testRules(new RuleValidationModel(RuleFileType.ENTITY.name(), mergingResult.getMergedRules()));
|
var droolsValidation = droolsValidationService.testRules(new RuleValidationModel(RuleFileType.ENTITY.name(), mergingResult.getMergedRules()));
|
||||||
|
log.info("result of validation: " + droolsValidation);
|
||||||
droolsValidationResponse = DroolsValidationResponse.builder()
|
droolsValidationResponse = DroolsValidationResponse.builder()
|
||||||
.syntaxErrorMessages(droolsValidation.getSyntaxErrorMessages()
|
.syntaxErrorMessages(droolsValidation.getSyntaxErrorMessages()
|
||||||
.stream()
|
.stream()
|
||||||
@ -99,7 +100,7 @@ public class RuleBuilderController implements RuleBuilderResource {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new RulesValidationException("Could not test rules: " + e.getMessage(), e);
|
throw new RulesValidationException("Could not test rules: " + e.getMessage(), e);
|
||||||
}
|
}
|
||||||
log.info("result after validation: {}",rulesUpdateRequest);
|
log.info("result after validation: {}", rulesUpdateRequest);
|
||||||
return new ResponseEntity<>(rulesUploadResponse, HttpStatus.OK);
|
return new ResponseEntity<>(rulesUploadResponse, HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -87,7 +87,6 @@ public class RuleBuilderService {
|
|||||||
.stream())
|
.stream())
|
||||||
.distinct()
|
.distinct()
|
||||||
.toList());
|
.toList());
|
||||||
log.info("merged rules: {}", RuleFileFactory.buildRuleString(ruleFileBluePrintExisting, false, false));
|
|
||||||
return RuleMergingResult.builder()
|
return RuleMergingResult.builder()
|
||||||
.mergedRules(RuleFileFactory.buildRuleString(mergedRuleFileBlueprint, false, false))
|
.mergedRules(RuleFileFactory.buildRuleString(mergedRuleFileBlueprint, false, false))
|
||||||
.addedGlobalsOffset(mergedRuleFileBlueprint.getGlobals().length())
|
.addedGlobalsOffset(mergedRuleFileBlueprint.getGlobals().length())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user