Do not show message ID twice

feature-npv2
Icedream 2014-05-08 11:09:18 +02:00
parent e508906e2b
commit 6555e2f24d
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ namespace NPSharp.RPC.Messages
#if DEBUG #if DEBUG
Log.DebugFormat("RPCServerMessage[ID={0},Type={1},TypeName={2}] {{", pid, packet.GetTypeId(), packet.GetType().Name); Log.DebugFormat("RPCServerMessage[ID={0},Type={1},TypeName={2}] {{", pid, packet.GetTypeId(), packet.GetType().Name);
foreach (var prop in packet.GetType().GetProperties().Where(p => !(p.DeclaringType is RPCServerMessage))) foreach (var prop in packet.GetType().GetProperties().Where(p => !(p.DeclaringType == typeof (RPCServerMessage))))
{ {
Log.DebugFormat("\t{0} = {1}", prop.Name, prop.GetValue(packet)); Log.DebugFormat("\t{0} = {1}", prop.Name, prop.GetValue(packet));
} }