Commit 6c7c35c8 authored by nivetha's avatar nivetha
Browse files

removed stacktrace

Showing with 6 additions and 4 deletions
+6 -4
......@@ -4,6 +4,8 @@ import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
......@@ -36,6 +38,8 @@ import com.tarento.retail.util.ResponseMessages;
@RequestMapping(PathRoutes.USER_ACTIONS_URL)
public class RoleActionController {
public static final Logger LOGGER = LoggerFactory.getLogger(RoleActionController.class);
@Autowired
private RoleActionService roleActionService;
......@@ -66,7 +70,7 @@ public class RoleActionController {
try {
return ResponseGenerator.successResponse(roleActionService.getAllRolesByDomain(orgDomain));
} catch (JsonProcessingException e) {
e.printStackTrace();
LOGGER.error("Exception in listRolesByDomain :" + e.getMessage());
}
return ResponseGenerator.failureResponse(ResponseMessages.ErrorMessages.ORG_DOMAIN_CODE_UNAVAILABLE);
}
......
......@@ -398,7 +398,6 @@ public class UserDaoImpl implements UserDao {
}
}, keyHolder);
} catch (Exception e) {
e.printStackTrace();
LOGGER.error(String.format(Constants.EXCEPTION_METHOD, "saveUserProfile", e.getMessage()));
return null;
}
......
......@@ -313,7 +313,7 @@ public class UserServiceImpl implements UserDetailsService, UserService {
return false;
} catch (IOException e) {
e.printStackTrace();
LOGGER.error(String.format(Constants.EXCEPTION_METHOD, "uploadFile", e.getMessage()));
return false;
}
}
......
......@@ -77,7 +77,6 @@ public class NotificationService {
transport.close();
return Boolean.TRUE;
} catch (Exception e) {
e.printStackTrace();
LOGGER.error(String.format("Exception in %s : %s", "sendMail", e.getMessage()));
}
return Boolean.FALSE;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment