removed logger

This commit is contained in:
Massimiliano Assante 2019-12-12 16:34:01 +01:00
parent 833d37b632
commit 92024aa0d9
1 changed files with 1 additions and 2 deletions

View File

@ -15,7 +15,6 @@ import com.liferay.portal.util.PortalUtil;
* @author massi * @author massi
*/ */
public class UpdateTermsOfUseAction extends BaseStrutsAction { public class UpdateTermsOfUseAction extends BaseStrutsAction {
private static com.liferay.portal.kernel.log.Log _log = LogFactoryUtil.getLog(UpdateTermsOfUseAction.class);
public String execute(StrutsAction originalStrutsAction, HttpServletRequest request, HttpServletResponse response) throws Exception { public String execute(StrutsAction originalStrutsAction, HttpServletRequest request, HttpServletResponse response) throws Exception {
String agreement = request.getParameter("agreement"); String agreement = request.getParameter("agreement");
if (agreement.compareTo("i-disagree")==0) { //the user did not agree if (agreement.compareTo("i-disagree")==0) { //the user did not agree
@ -23,7 +22,7 @@ public class UpdateTermsOfUseAction extends BaseStrutsAction {
try { try {
D4ScienceRemoveAccountManager removeAccountManager = new D4ScienceRemoveAccountManager(user.getScreenName()); D4ScienceRemoveAccountManager removeAccountManager = new D4ScienceRemoveAccountManager(user.getScreenName());
removeAccountManager.doAsyncRemoveAccount(); removeAccountManager.doAsyncRemoveAccount();
_log.info("*** UpdateTermsOfUseAction user DID NOT AGREE, removeUser account for username=" + user.getScreenName() + " done with success, notified also the managers ... "); System.out.println("*** UpdateTermsOfUseAction user DID NOT AGREE, removeUser account for username=" + user.getScreenName() + " done with success, notified also the managers ... ");
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }