print log

master
wangyuan 2019-08-16 12:03:41 +08:00
parent 2407b4186c
commit 222386a2cf
1 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,8 @@ import com.ljsd.util.HttpUtils;
import com.ljsd.util.KTSDKConstans;
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;
@ -22,6 +24,7 @@ import java.util.Random;
public class GetUserController extends HttpServlet {
private final static String _COLLECTION_NAME = "user_info";
private static final Logger LOGGER = LoggerFactory.getLogger(GetUserController.class);
public GetUserController() {
super();
@ -39,6 +42,7 @@ public class GetUserController extends HttpServlet {
response.sendError(400, "openId is empety");
return;
}
LOGGER.info("the opendId = {}",openId);
String serverId = request.getParameter("serverId");
if (serverId == null || serverId.isEmpty()) {
response.sendError(400, "serverId is empety");