Skip to content
Permalink
Browse files
Minor change: Improving error message.
  • Loading branch information
myrle-krantz committed Aug 3, 2017
1 parent 192355a commit 2b03af43c197759a84e82e448028876ff029f7bf
Showing 1 changed file with 4 additions and 1 deletion.
@@ -265,7 +265,10 @@ EventExpectation createOrFindPermittableGroup(
final Set<PermittableEndpoint> existingGroupPermittables = new HashSet<>(existingGroup.getPermittables());
final Set<PermittableEndpoint> newGroupPermittables = new HashSet<>(permittableGroup.getPermittables());
if (!existingGroupPermittables.equals(newGroupPermittables)) {
logger.error("Group '{}' already exists for tenant {}, but has different contents.", permittableGroup.getIdentifier(), TenantContextHolder.checkedGetIdentifier());
logger.warn("Group '{}' already exists for tenant {}, but has different contents. " +
"Needed contents are '{}', existing contents are '{}'",
permittableGroup.getIdentifier(), TenantContextHolder.checkedGetIdentifier(),
newGroupPermittables, existingGroupPermittables);
}
}
catch (final RuntimeException unexpected)

0 comments on commit 2b03af4

Please sign in to comment.