Add trace logging for more packets

This commit is contained in:
Chord 2016-07-26 02:16:47 -04:00
parent c77928b915
commit d880a95aee
2 changed files with 5 additions and 5 deletions

View file

@ -66,7 +66,7 @@ class CryptoSessionActor extends Actor with MDCContextAware {
PacketCoding.UnmarshalPacket(msg) match {
case Failure(e) => log.error("Could not decode packet: " + e + s", msg ${msg.toString}")
case Successful(p) =>
//println("RECV: " + p)
log.trace("Initializing -> NewClient")
p match {
case ControlPacket(_, ClientStart(nonce)) =>
@ -85,7 +85,7 @@ class CryptoSessionActor extends Actor with MDCContextAware {
PacketCoding.UnmarshalPacket(msg, CryptoPacketOpcode.ClientChallengeXchg) match {
case Failure(e) => log.error("Could not decode packet: " + e)
case Successful(p) =>
//println("RECV: " + p)
log.trace("NewClient -> CryptoExchange")
p match {
case CryptoPacket(seq, ClientChallengeXchg(time, challenge, p, g)) =>
@ -129,7 +129,7 @@ class CryptoSessionActor extends Actor with MDCContextAware {
PacketCoding.UnmarshalPacket(msg, CryptoPacketOpcode.ClientFinished) match {
case Failure(e) => log.error("Could not decode packet: " + e)
case Successful(p) =>
//println("RECV: " + p)
log.trace("CryptoExchange -> CryptoSetupFinishing")
p match {
case CryptoPacket(seq, ClientFinished(clientPubKey, clientChalResult)) =>
@ -292,7 +292,7 @@ class CryptoSessionActor extends Actor with MDCContextAware {
}
def sendResponse(cont : PlanetSidePacketContainer) : ByteVector = {
//println("CRYPTO SEND: " + cont)
log.trace("CRYPTO SEND: " + cont)
val pkt = PacketCoding.MarshalPacket(cont)
pkt match {

View file

@ -67,7 +67,7 @@ class SessionRouter(pipeline : List[SessionPipeline]) extends Actor with MDCCont
if(idBySocket.contains(from)) {
MDC("sessionId") = idBySocket{from}.toString
log.trace(s"Handling recieved packet")
log.trace(s"Handling received packet ${msg} -> ${sessionById{idBySocket{from}}.startOfPipe.path.name}")
sessionById{idBySocket{from}}.startOfPipe !> RawPacket(msg)
MDC.clear()