From 449b7957fe51731391341863a25976cc26293d18 Mon Sep 17 00:00:00 2001 From: xuexinpeng Date: Thu, 2 Dec 2021 16:47:00 +0800 Subject: [PATCH] log --- .../java/com/ljsd/controller/GetServerListController.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/ljsd/controller/GetServerListController.java b/src/main/java/com/ljsd/controller/GetServerListController.java index c71aa45..c8419ca 100644 --- a/src/main/java/com/ljsd/controller/GetServerListController.java +++ b/src/main/java/com/ljsd/controller/GetServerListController.java @@ -6,6 +6,8 @@ import com.ljsd.util.BaseGlobal; import com.ljsd.util.StringUtils; import com.mongodb.BasicDBObject; import com.mongodb.DBObject; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; @@ -25,6 +27,7 @@ public class GetServerListController extends HttpServlet { private static volatile DBObject whiteListCache = new BasicDBObject(); private static volatile String recommend = "";//推荐列表 private static volatile long lastRefreshTime = 0; + private static final Logger LOGGER = LoggerFactory.getLogger(GetServerListController.class); public GetServerListController() { super(); @@ -47,9 +50,12 @@ public class GetServerListController extends HttpServlet { String sub_channel = request.getParameter("sub_channel"); String server_version = request.getParameter("server_version"); String plat = request.getParameter("plat"); + LOGGER.error("channel0"+channel); if(channel.equals("QUICK2")){ channel ="QUICK"; + LOGGER.error("channel1"+channel); } + LOGGER.error("channel2"+channel); if (StringUtils.checkIsEmpty(openId) || StringUtils.checkIsEmpty(channel) || StringUtils.checkIsEmpty(sub_channel) || StringUtils.checkIsEmpty(plat) || StringUtils.checkIsEmpty(server_version)) { response.sendError(400, "parm is wrong");