Merge pull request #542 from milanperera/release-2.0.x

Changed logs to warn
4.x.x
Rasika Perera 8 years ago committed by GitHub
commit e2ecd3c12b

@ -280,8 +280,9 @@ public class AnnotationProcessor {
if (scope != null) {
resource.setScope(scope);
} 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");
scope = new Scope();
scope.setKey(DEFAULT_SCOPE_KEY);
scope.setRoles(DEFAULT_SCOPE_PERMISSION);
resource.setScope(scope);

Loading…
Cancel
Save