mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
ACE-5871: add more logging (#19)
* REPO-3581: ACE-5871: add more logging for model fail
This commit is contained in:
@@ -112,9 +112,8 @@ public class CompiledModel implements ModelQuery
|
|||||||
// Phase 3: Resolve inheritance of values within class hierachy
|
// Phase 3: Resolve inheritance of values within class hierachy
|
||||||
NamespacePrefixResolver localPrefixes = createLocalPrefixResolver(model, namespaceDAO);
|
NamespacePrefixResolver localPrefixes = createLocalPrefixResolver(model, namespaceDAO);
|
||||||
resolveInheritance(query, localPrefixes, constraints);
|
resolveInheritance(query, localPrefixes, constraints);
|
||||||
|
|
||||||
// Phase 4: Resolve constraint dependencies
|
|
||||||
|
|
||||||
|
// Phase 4: Resolve constraint dependencies
|
||||||
for (ConstraintDefinition def : constraints.values())
|
for (ConstraintDefinition def : constraints.values())
|
||||||
{
|
{
|
||||||
((M2ConstraintDefinition)def).resolveDependencies(query, enableConstraintClassLoading);
|
((M2ConstraintDefinition)def).resolveDependencies(query, enableConstraintClassLoading);
|
||||||
@@ -123,6 +122,10 @@ public class CompiledModel implements ModelQuery
|
|||||||
}
|
}
|
||||||
catch(Exception e)
|
catch(Exception e)
|
||||||
{
|
{
|
||||||
|
if (logger.isDebugEnabled())
|
||||||
|
{
|
||||||
|
logger.debug("Failed to compile model: " + model.getName(), e);
|
||||||
|
}
|
||||||
throw new DictionaryException(ERR_COMPILE_MODEL_FAILURE, e, model.getName());
|
throw new DictionaryException(ERR_COMPILE_MODEL_FAILURE, e, model.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user