Skip to content

Commit

Permalink
Log when the initial users/groups are created
Browse files Browse the repository at this point in the history
  • Loading branch information
sodre committed Apr 14, 2022
1 parent 1c3e61e commit d411cc8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public class CognitoNaiveUserGroupProvider extends AbstractCognitoUserGroupProvi
@Override
public void onConfigured(AuthorizerConfigurationContext configurationContext) throws AuthorizerCreationException {
super.onConfigured(configurationContext);
StopWatch watch = new StopWatch();
watch.start();

RetryPolicy<Object> nullRetryPolicy = RetryPolicy.builder()
.withMaxAttempts(10)
Expand Down Expand Up @@ -61,6 +63,8 @@ public void onConfigured(AuthorizerConfigurationContext configurationContext) th
.run(() -> addUserToGroup(user, group.getIdentifier()))
);
});
watch.stop();
logger.info("Initial Users/Groups created: " + watch.getDuration());
}

@Override
Expand Down

0 comments on commit d411cc8

Please sign in to comment.