Skip to content

Commit

Permalink
MID-4574 some logging added
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Apr 26, 2018
1 parent 39845d3 commit bc702d9
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -18,6 +18,8 @@
import java.util.HashMap;
import java.util.Map;

import com.evolveum.midpoint.util.logging.Trace;
import com.evolveum.midpoint.util.logging.TraceManager;
import org.springframework.stereotype.Component;

import com.evolveum.midpoint.prism.PrismObject;
Expand All @@ -34,6 +36,8 @@
@Component
public class ResourceCache {

private static final Trace LOGGER = TraceManager.getTrace(ResourceCache.class);

private Map<String,PrismObject<ResourceType>> cache;

ResourceCache() {
Expand Down Expand Up @@ -95,6 +99,7 @@ public synchronized PrismObject<ResourceType> get(String oid, String version, Ge
try {
cachedResource.checkImmutability();
} catch (IllegalStateException ex) {
LOGGER.error("Failed immutability test", ex);
// todo still need proper fix https://jira.evolveum.com/browse/MID-4574
return null;
}
Expand Down

0 comments on commit bc702d9

Please sign in to comment.