From cbd0e4d78cb2c616658e3feb1c701a92c60859ed Mon Sep 17 00:00:00 2001 From: gaojie Date: Wed, 10 Jul 2019 15:21:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=B7=E6=B1=82=E6=89=80=E9=9C=80=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ljsd/jieling/core/HandlerLogicThread.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/core/HandlerLogicThread.java b/serverlogic/src/main/java/com/ljsd/jieling/core/HandlerLogicThread.java index 0780c09e7..ee4af1b6a 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/core/HandlerLogicThread.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/core/HandlerLogicThread.java @@ -107,7 +107,7 @@ public class HandlerLogicThread extends Thread{ return; }*/ } - + long curTimeMillis = System.currentTimeMillis(); if(msgId != MessageTypeProto.MessageType.GET_CHAT_MESSAGE_REQUEST_VALUE){ LOGGER.info("doWork->uid={},mType={};start", userId, MessageTypeProto.MessageType.valueOf(msgId)); } @@ -115,11 +115,12 @@ public class HandlerLogicThread extends Thread{ MissionEventDistributor.requestStart(); baseHandler.execute(session, packetNetData); MissionEventDistributor.requestEnd(session,true); - if(msgId != MessageTypeProto.MessageType.GET_CHAT_MESSAGE_REQUEST_VALUE){ - LOGGER.info("doWork->uid={},mType={};end", userId, MessageTypeProto.MessageType.valueOf(msgId)); - } MongoUtil.getInstence().lastUpdate(); + if(msgId != MessageTypeProto.MessageType.GET_CHAT_MESSAGE_REQUEST_VALUE){ + long useTime = System.currentTimeMillis() - curTimeMillis; + LOGGER.info("doWork->uid={},mType={},useTime={},;end", userId, MessageTypeProto.MessageType.valueOf(msgId),useTime); + } }catch (Exception e){ LOGGER.error("",e);