You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2018/06/05 14:08:30 UTC
[airavata] branch group-based-auth updated: AIRAVATA-2797 Log
exceptions
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch group-based-auth
in repository https://gitbox.apache.org/repos/asf/airavata.git
The following commit(s) were added to refs/heads/group-based-auth by this push:
new a75bac6 AIRAVATA-2797 Log exceptions
a75bac6 is described below
commit a75bac688f57855616cf8298ebcf54a4fc7f3255
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Tue Jun 5 10:07:49 2018 -0400
AIRAVATA-2797 Log exceptions
---
.../org/apache/airavata/api/server/handler/AiravataServerHandler.java | 2 +-
.../airavata/registry/api/service/handler/RegistryServerHandler.java | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
index 285b890..16f6c23 100644
--- a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
+++ b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
@@ -4340,7 +4340,7 @@ public class AiravataServerHandler implements Airavata.Iface {
registryClientPool.returnResource(regClient);
return result;
} catch (Exception e) {
- logger.error(userId, "Error while retrieving user resource profile...", e);
+ logger.error("Error while retrieving user resource profile for " + userId, e);
AiravataSystemException exception = new AiravataSystemException();
exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
exception.setMessage("Error while retrieving user resource profile. More info : " + e.getMessage());
diff --git a/modules/registry/registry-server/registry-api-service/src/main/java/org/apache/airavata/registry/api/service/handler/RegistryServerHandler.java b/modules/registry/registry-server/registry-api-service/src/main/java/org/apache/airavata/registry/api/service/handler/RegistryServerHandler.java
index fce8997..2e491e5 100644
--- a/modules/registry/registry-server/registry-api-service/src/main/java/org/apache/airavata/registry/api/service/handler/RegistryServerHandler.java
+++ b/modules/registry/registry-server/registry-api-service/src/main/java/org/apache/airavata/registry/api/service/handler/RegistryServerHandler.java
@@ -4316,12 +4316,12 @@ public class RegistryServerHandler implements RegistryService.Iface {
logger.debug("Airavata retrieved User resource profile with user id : " + userId);
return userResourceProfile;
} catch (AppCatalogException e) {
- logger.error(userId, "Error while retrieving user resource profile...", e);
+ logger.error("Error while retrieving user resource profile...", e);
RegistryServiceException exception = new RegistryServiceException();
exception.setMessage("Error while retrieving user resource profile. More info : " + e.getMessage());
throw exception;
} catch (RegistryException e) {
- logger.error(userId, "Error while retrieving user resource profile...", e);
+ logger.error("Error while retrieving user resource profile...", e);
RegistryServiceException exception = new RegistryServiceException();
exception.setMessage("Error while retrieving user resource profile. More info : " + e.getMessage());
throw exception;
--
To stop receiving notification emails like this one, please contact
machristie@apache.org.