diff options
author | Norm Traxler <normant@amdocs.com> | 2019-03-06 21:17:26 +0000 |
---|---|---|
committer | Norm Traxler <normant@amdocs.com> | 2019-03-06 21:17:39 +0000 |
commit | 479ae71e3fc17839730a32b24575897c0bbed813 (patch) | |
tree | 4ca2f2d9ad630c3d8f7f0591a20cb464d03565db /src/main/java/org/onap/pomba/contextbuilder/aai/service/rs | |
parent | 2ecb0d9cfcb4fab803da12787b6e75f68fdff280 (diff) |
LOG-1001: Errors not logged
Issue-ID: LOG-1001
Change-Id: I8f10e58fa42046b099c38f0d55c599622cb1fb29
Signed-off-by: Norm Traxler <normant@amdocs.com>
Diffstat (limited to 'src/main/java/org/onap/pomba/contextbuilder/aai/service/rs')
-rw-r--r-- | src/main/java/org/onap/pomba/contextbuilder/aai/service/rs/RestServiceImpl.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/onap/pomba/contextbuilder/aai/service/rs/RestServiceImpl.java b/src/main/java/org/onap/pomba/contextbuilder/aai/service/rs/RestServiceImpl.java index f5653f2..6542db5 100644 --- a/src/main/java/org/onap/pomba/contextbuilder/aai/service/rs/RestServiceImpl.java +++ b/src/main/java/org/onap/pomba/contextbuilder/aai/service/rs/RestServiceImpl.java @@ -87,6 +87,7 @@ public class RestServiceImpl implements RestService { response = Response.ok().entity(gson.toJson(aaiContext)).build(); } } catch (AuditException ce) { + log.error("getContext failure", ce); if (ce.getHttpStatus() !=null) { response = Response.status(ce.getHttpStatus()).entity(ce.getMessage()).build(); }else { @@ -94,6 +95,7 @@ public class RestServiceImpl implements RestService { response = Response.status(Status.INTERNAL_SERVER_ERROR).entity(ce.getMessage()).build(); } } catch (Exception e) { + log.error("getContext failure", e); response = Response.status(Status.INTERNAL_SERVER_ERROR).entity(e.getMessage()).build(); } |