Changed logs to warn

merge-requests/7/head
Milan Perera 8 years ago
parent 311fe7810f
commit d9ea6af775

@ -280,8 +280,9 @@ public class AnnotationProcessor {
if (scope != null) { if (scope != null) {
resource.setScope(scope); resource.setScope(scope);
} else { } else {
log.error("Scope is not defined for '" + makeContextURLReady(resourceRootContext) + log.warn("Scope is not defined for '" + makeContextURLReady(resourceRootContext) +
makeContextURLReady(subCtx) + "' endpoint, hence assigning the default scope"); makeContextURLReady(subCtx) + "' endpoint, hence assigning the default scope");
scope = new Scope();
scope.setKey(DEFAULT_SCOPE_KEY); scope.setKey(DEFAULT_SCOPE_KEY);
scope.setRoles(DEFAULT_SCOPE_PERMISSION); scope.setRoles(DEFAULT_SCOPE_PERMISSION);
resource.setScope(scope); resource.setScope(scope);

Loading…
Cancel
Save