修改日志打印
parent
b9d44ccd3e
commit
71dd1931c8
|
@ -185,7 +185,8 @@ public class HandlerLogicThread extends Thread{
|
|||
//内部codeErr统一处理
|
||||
if(e instanceof ErrorCodeException){
|
||||
int errCode = ErrorUtil.getExceptionErrorCodeValue(e);
|
||||
LOGGER.error("An unusual ErrorCodeException occurred for the user::use"+ session.getUid());
|
||||
LOGGER.error("An unusual ErrorCodeException occurred for the user={} errCode={} e={}",
|
||||
session.getUid(), errCode, e);
|
||||
if (errCode <= 0) {
|
||||
//打印堆栈定位错误
|
||||
LOGGER.error(ErrorUtil.getExceptionStackTraceFileLineAndMethod(e));
|
||||
|
@ -197,7 +198,7 @@ public class HandlerLogicThread extends Thread{
|
|||
return;
|
||||
}
|
||||
|
||||
LOGGER.error("\nuser:"+ session.getUid(),e);
|
||||
LOGGER.error("userId={} exception={}", session.getUid(),e);
|
||||
User user = UserManager.getUserInMem(session.getUid());
|
||||
if (null != user) {
|
||||
UserManager.removeUser(session.getUid());
|
||||
|
@ -209,10 +210,12 @@ public class HandlerLogicThread extends Thread{
|
|||
UserManager.addUser(user);
|
||||
MessageUtil.sendErrorResponse(session, 0, session.getLastMsgId() + 1,"");
|
||||
// MessageUtil.sendErrorCode(session,session.getLastMsgId()+1, SErrorCodeEerverConfig.getI18NMessage("bug_unify_txt"));
|
||||
}catch (Exception e1){}
|
||||
}catch (Exception e1){
|
||||
LOGGER.error("e={}",e1);
|
||||
}
|
||||
|
||||
}else {
|
||||
LOGGER.error("",e);
|
||||
LOGGER.error("e={}",e);
|
||||
}
|
||||
}finally {
|
||||
destroyISession();
|
||||
|
|
Loading…
Reference in New Issue