Adding tracelogs to the API discovery service 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/26d637a0 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/26d637a0 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/26d637a0 Branch: refs/heads/object_store Commit: 26d637a0fb77e803b9f03cfcbc46076931a3c4b6 Parents: 9037d3b Author: Prasanna Santhanam <t...@apache.org> Authored: Tue May 7 13:50:56 2013 +0530 Committer: Prasanna Santhanam <t...@apache.org> Committed: Tue May 7 13:52:12 2013 +0530 ---------------------------------------------------------------------- .../discovery/ApiDiscoveryServiceImpl.java | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/26d637a0/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 2d7dbd1..08fb573 100755 --- a/plugins/api/discovery/src/org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java +++ b/plugins/api/discovery/src/org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java @@ -83,6 +83,9 @@ public class ApiDiscoveryServiceImpl implements ApiDiscoveryService { } String apiName = apiCmdAnnotation.name(); + if (s_logger.isTraceEnabled()) { + s_logger.trace("Found api: " + apiName); + } ApiDiscoveryResponse response = getCmdRequestMap(cmdClass, apiCmdAnnotation); String responseName = apiCmdAnnotation.responseObject().getName();