规范日志
parent
33bd562ea6
commit
a4d8819350
|
@ -176,7 +176,7 @@ public class HandlerLogicThread extends Thread{
|
|||
//内部codeErr统一处理
|
||||
if(e instanceof ErrorCodeException){
|
||||
int errCode = ErrorUtil.getExceptionErrorCodeValue(e);
|
||||
LOGGER.error("\nAn unusual ErrorCodeException occurred for the user::use"+ session.getUid());
|
||||
LOGGER.error("An unusual ErrorCodeException occurred for the user::use"+ session.getUid());
|
||||
if (errCode <= 0) {
|
||||
//打印堆栈定位错误
|
||||
LOGGER.error(ErrorUtil.getExceptionStackTraceFileLineAndMethod(e));
|
||||
|
|
|
@ -53,8 +53,8 @@ public abstract class BaseHandler<T extends GeneratedMessage> {
|
|||
} catch(NoSuchFieldException|SecurityException|IllegalAccessException|IllegalArgumentException|ExceptionInInitializerError|InvalidProtocolBufferException var5){
|
||||
throw new LogicException("解析协议失败",var5);
|
||||
}catch (Exception var4) {
|
||||
if(null !=proto){
|
||||
LOGGER.error("processWithProtoException\r\nprotoID:"+netData.getMsgId()+"\r\nuid"+netData.getUserId()+"\r\n"+proto.toString());
|
||||
if (null != proto) {
|
||||
LOGGER.error("processWithProto Exception protoID={},uid={},proto=>{}", netData.getMsgId(), netData.getUserId(), proto.toString());
|
||||
}
|
||||
throw var4;
|
||||
}
|
||||
|
|
|
@ -117,7 +117,7 @@ public class LoginRequestHandler extends BaseHandler<PlayerInfoProto.LoginReques
|
|||
// }
|
||||
// }
|
||||
|
||||
LOGGER.info("the uid={},the pid={},the gid={},",userId,pid,gid);
|
||||
LOGGER.info("LOGIN_REQUEST the uid={},the pid={},the gid={},",userId,pid,gid);
|
||||
//登陆注册入内存
|
||||
String openIdFront = loginRequest.getOpenId();
|
||||
String[] split = openIdFront.split("\\.");
|
||||
|
|
Loading…
Reference in New Issue