Skip to content

Commit

Permalink
even more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
calypsomatic committed Oct 11, 2024
1 parent 4274aeb commit b45b507
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,9 @@ class ResourceService(
private def checkNoPoliciesInUse(resource: FullyQualifiedResourceId, cascadePolicies: Option[Boolean], samRequestContext: SamRequestContext): IO[Unit] =
cascadePolicies match {
case Some(true) =>
accessPolicyDAO.checkPolicyGroupsInUse(resource, samRequestContext).flatMap { problematicGroups =>
if (problematicGroups.nonEmpty) logger.warn(s"Problematic groups to delete: ${problematicGroups}")
}
accessPolicyDAO.removePolicyGroupsInUse(resource, samRequestContext)
IO.unit
case _ =>
Expand Down

0 comments on commit b45b507

Please sign in to comment.