Skip to content

Commit

Permalink
Add prints
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Crawford <[email protected]>
  • Loading branch information
stephen-crawford committed Nov 22, 2023
1 parent e551169 commit 012ee81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ public SecurityDynamicConfiguration<?> getConfiguration(CType configurationType)
private final Lock LOCK = new ReentrantLock();

public void reloadConfiguration(Collection<CType> configTypes) throws ConfigUpdateAlreadyInProgressException {
System.out.println("Reloading configuration for configTypes");
try {
if (LOCK.tryLock(60, TimeUnit.SECONDS)) {
try {
Expand All @@ -396,6 +397,7 @@ public void reloadConfiguration(Collection<CType> configTypes) throws ConfigUpda
}

private void reloadConfiguration0(Collection<CType> configTypes, boolean acceptInvalid) {
System.out.println("Reloading Configuration 0 for config Types");
final Map<CType, SecurityDynamicConfiguration<?>> loaded = getConfigurationsFromIndex(configTypes, false, acceptInvalid);
configCache.putAll(loaded);
notifyAboutChanges(loaded);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ private static ConfigV7 getConfigV7(SecurityDynamicConfiguration<?> sdc) {

@Override
public final boolean isInitialized() {
System.out.println("Checking if initialized in dynamic configuration factory");
return initialized.get();
}

Expand Down

0 comments on commit 012ee81

Please sign in to comment.