Warn about orphan scopes

scope-fixes
parent fccae9b8c0
commit 664dfd21c9

@ -553,9 +553,7 @@ public class APIPublisherServiceImpl implements APIPublisherService {
publisherRESTAPIServices.updateSharedScope(apiApplicationKey, accessTokenInfo, scope); publisherRESTAPIServices.updateSharedScope(apiApplicationKey, accessTokenInfo, scope);
} else { } else {
// todo: come to this level means, that scope is removed from API, but haven't removed from the scope-role-permission-mappings list // todo: come to this level means, that scope is removed from API, but haven't removed from the scope-role-permission-mappings list
if (log.isDebugEnabled()) { log.warn(scope.getKey() + " not available as shared scope");
log.debug(scope.getKey() + " not available as shared scope");
}
} }
} }
for (String role : rolePermissions.keySet()) { for (String role : rolePermissions.keySet()) {

Loading…
Cancel
Save