diff options
author | 2018-02-01 09:49:24 +0100 | |
---|---|---|
committer | 2018-02-01 09:49:24 +0100 | |
commit | 543f09c33f50d043ba2246fce3954e393e16a26f (patch) | |
tree | e30f53e1b1267a59b1d7164ce45bb44ededd94b1 /aai-core/src/main/java/org | |
parent | 6b98bb3ec93a0bbfbe0e660cabc69978b53bfee8 (diff) |
Fix in CNName
Change-Id: Iae265c4ad5891d14d9c56915e50878fa9b053a1c
Issue-ID: AAI-724
Signed-off-by: burdziak <olaf.burdziakowski@nokia.com>
Diffstat (limited to 'aai-core/src/main/java/org')
-rw-r--r-- | aai-core/src/main/java/org/onap/aai/logging/CNName.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/aai-core/src/main/java/org/onap/aai/logging/CNName.java b/aai-core/src/main/java/org/onap/aai/logging/CNName.java index 7adbe87a..de5e99e5 100644 --- a/aai-core/src/main/java/org/onap/aai/logging/CNName.java +++ b/aai-core/src/main/java/org/onap/aai/logging/CNName.java @@ -23,6 +23,8 @@ package org.onap.aai.logging; import ch.qos.logback.access.pattern.AccessConverter; import ch.qos.logback.access.spi.IAccessEvent; +import com.att.eelf.configuration.EELFLogger; +import com.att.eelf.configuration.EELFManager; import javax.security.auth.x500.X500Principal; import javax.servlet.http.HttpServletRequest; @@ -31,6 +33,7 @@ import java.security.cert.X509Certificate; import static java.util.Base64.getDecoder; public class CNName extends AccessConverter { + private static final EELFLogger LOGGER = EELFManager.getInstance().getLogger(CNName.class); /** * Converts access events to String response codes @@ -83,7 +86,8 @@ public class CNName extends AccessConverter { authUser = subjectDN.toString(); return authUser; } - } catch(Exception ex){ + } catch(Exception e){ + LOGGER.error(e.getMessage(),e); return "-"; } } else { |