Skip to content

Commit

Permalink
correct packetType log
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottyPoi committed Jan 17, 2025
1 parent 3d09805 commit 4c50c89
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,9 @@ export class RequestManager {
packet.header.pType === PacketType.ST_SYN ||
packet.header.pType === PacketType.ST_RESET
) {
const packetType = packet.header.pType === PacketType.ST_SYN ? 'SYN' : 'RESET'
this.logger.extend('HANDLE_PACKET')(
`Processing SYN packet for Req:${packet.header.connectionId}`,
`Processing ${packetType} packet for Req:${packet.header.connectionId}`,
)
await request.handleUtpPacket(packet)
return
Expand Down

0 comments on commit 4c50c89

Please sign in to comment.