diff options
Diffstat (limited to 'ECOMP-SDK-APP/src/main')
-rw-r--r-- | ECOMP-SDK-APP/src/main/java/org/openecomp/portalapp/login/LoginStrategyImpl.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ECOMP-SDK-APP/src/main/java/org/openecomp/portalapp/login/LoginStrategyImpl.java b/ECOMP-SDK-APP/src/main/java/org/openecomp/portalapp/login/LoginStrategyImpl.java index 9f742ce9f..d0aca5d32 100644 --- a/ECOMP-SDK-APP/src/main/java/org/openecomp/portalapp/login/LoginStrategyImpl.java +++ b/ECOMP-SDK-APP/src/main/java/org/openecomp/portalapp/login/LoginStrategyImpl.java @@ -4,6 +4,8 @@ import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import org.openecomp.policy.common.logging.flexlogger.FlexLogger; +import org.openecomp.policy.common.logging.flexlogger.Logger; import org.openecomp.portalsdk.core.auth.LoginStrategy; import org.openecomp.portalsdk.core.onboarding.exception.PortalAPIException; import org.openecomp.portalsdk.core.onboarding.util.CipherUtil; @@ -13,6 +15,8 @@ import org.springframework.web.servlet.ModelAndView; public class LoginStrategyImpl extends LoginStrategy { + private static final Logger LOGGER = FlexLogger.getLogger(LoginStrategyImpl.class); + @Override public ModelAndView doLogin(HttpServletRequest request, HttpServletResponse response) throws Exception { //'login' for opensource is same as 'external' login. @@ -29,8 +33,7 @@ public class LoginStrategyImpl extends LoginStrategy { try { userid = getUserIdFromCookie(request); } catch (Exception e) { - // TODO Auto-generated catch block - e.printStackTrace(); + LOGGER.error("Exception Occured"+e); } return userid; } |