Skip to content

Commit

Permalink
fix(impl): [#199] correct logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmf committed Apr 9, 2024
1 parent 06c542a commit dd14862
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public Map<String, List<Policy>> getAllStoredPolicies() {
}

public void deletePolicy(final String policyId) {
log.info("Getting all policies to find correct bpn number");
log.info("Getting all policies to find correct BPN");
final List<String> bpnsContainingPolicyId = PolicyHelper.findBpnsByPolicyId(getAllStoredPolicies(), policyId);

if (bpnsContainingPolicyId.isEmpty()) {
Expand Down Expand Up @@ -306,8 +306,6 @@ private List<Policy> createDefaultPolicyFromConfig(
new Constraint(acceptedPolicy.getLeftOperand(),
new Operator(OperatorType.fromValue(acceptedPolicy.getOperator())),
acceptedPolicy.getRightOperand())));
final Policy policy = new Policy("default-policy", OffsetDateTime.now(),
OffsetDateTime.now().plusYears(DEFAULT_POLICY_LIFETIME_YEARS),
final Policy policy = new Policy(ConfiguredDefaultPolicy.DEFAULT_POLICY_ID, OffsetDateTime.now(),
OffsetDateTime.now().plusYears(ConfiguredDefaultPolicy.DEFAULT_POLICY_LIFETIME_YEARS),
List.of(new Permission(PolicyType.USE, new Constraints(constraints, constraints))));
Expand Down

0 comments on commit dd14862

Please sign in to comment.