cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alena1...@apache.org
Subject [62/72] [abbrv] git commit: updated refs/heads/internallb to 43e1667
Date Tue, 07 May 2013 22:02:18 GMT
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>


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

Branch: refs/heads/internallb
Commit: 79f6e11368d4b6227e9055bb58cce8e5b9872cfe
Parents: 92cb7d3
Author: Prasanna Santhanam <tsp@apache.org>
Authored: Tue May 7 15:26:48 2013 +0530
Committer: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Committed: Tue May 7 13:16:44 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/79f6e113/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;
                 }
             }


Mime
View raw message