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 <t...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/1d24cbc3
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/1d24cbc3
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/1d24cbc3

Branch: refs/heads/object_store
Commit: 1d24cbc3071e6b6b75449e01ec8d1a4dc9744ec4
Parents: 9ee8533
Author: Prasanna Santhanam <t...@apache.org>
Authored: Tue May 7 15:26:48 2013 +0530
Committer: Prasanna Santhanam <t...@apache.org>
Committed: Tue May 7 15:29:10 2013 +0530

----------------------------------------------------------------------
 .../discovery/ApiDiscoveryServiceImpl.java         |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/1d24cbc3/plugins/api/discovery/src/org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java
----------------------------------------------------------------------
diff --git 
a/plugins/api/discovery/src/org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java
 
b/plugins/api/discovery/src/org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java
index 08fb573..860240f 100755
--- 
a/plugins/api/discovery/src/org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java
+++ 
b/plugins/api/discovery/src/org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java
@@ -219,6 +219,7 @@ public class ApiDiscoveryServiceImpl implements 
ApiDiscoveryService {
                 try {
                     apiChecker.checkAccess(user, name);
                 } catch (Exception ex) {
+                    s_logger.debug("API discovery access check failed for " + 
name + " with " + ex.getMessage());
                     return null;
                 }
             }

Reply via email to