Skip to content

Commit 1d24cbc

Browse files
author
Prasanna Santhanam
committed
add debug logs when access checkers fail to find API
When the access checkers fail for api discovery, we fail silently. instead record a debug message. Signed-off-by: Prasanna Santhanam <tsp@apache.org>
1 parent 9ee8533 commit 1d24cbc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎plugins/api/discovery/src/org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ public ListResponse<? extends BaseResponse> listApis(User user, String name) {
219219
try {
220220
apiChecker.checkAccess(user, name);
221221
} catch (Exception ex) {
222+
s_logger.debug("API discovery access check failed for " + name + " with " + ex.getMessage());
222223
return null;
223224
}
224225
}

0 commit comments

Comments
 (0)