mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Changed logs to warn
This commit is contained in:
parent
311fe7810f
commit
d9ea6af775
@ -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…
Reference in New Issue
Block a user