fix log error
This commit is contained in:
parent
1b9e1db351
commit
deab304d5b
@ -647,7 +647,7 @@ public class PushService implements ApplicationContextAware, ApplicationListener
|
||||
try {
|
||||
udpSocket.receive(packet);
|
||||
|
||||
String json = new String(packet.getData(), 0, packet.getLength(), Charset.forName("UTF-8")).trim();
|
||||
String json = new String(packet.getData(), 0, packet.getLength(), StandardCharsets.UTF_8).trim();
|
||||
AckPacket ackPacket = JSON.parseObject(json, AckPacket.class);
|
||||
|
||||
InetSocketAddress socketAddress = (InetSocketAddress) packet.getSocketAddress();
|
||||
@ -667,7 +667,7 @@ public class PushService implements ApplicationContextAware, ApplicationListener
|
||||
|
||||
long pushCost = System.currentTimeMillis() - udpSendTimeMap.get(ackKey);
|
||||
|
||||
Loggers.PUSH.info("received ack: {} from: {}:, cost: {} ms, unacked: {}, total push: {}",
|
||||
Loggers.PUSH.info("received ack: {} from: {}:{}, cost: {} ms, unacked: {}, total push: {}",
|
||||
json, ip, port, pushCost, ackMap.size(), totalPush);
|
||||
|
||||
pushCostMap.put(ackKey, pushCost);
|
||||
|
Loading…
Reference in New Issue
Block a user