added verbose output of unhandled packets from the viewer

afrisby
Jeff Ames 2007-11-12 19:01:04 +00:00
parent 0b8a55e36c
commit 128c7b2d43
1 changed files with 8 additions and 6 deletions

View File

@ -359,7 +359,7 @@ namespace OpenSim.Region.ClientStack
} }
break; break;
case PacketType.ObjectPermissions: case PacketType.ObjectPermissions:
//Console.WriteLine("permissions set " + Pack.ToString()); OpenSim.Framework.Console.MainLog.Instance.Verbose("CLIENT", "unhandled packet " + Pack.ToString());
break; break;
#endregion #endregion
@ -541,7 +541,7 @@ namespace OpenSim.Region.ClientStack
} }
break; break;
case PacketType.MoveTaskInventory: case PacketType.MoveTaskInventory:
//Console.WriteLine(Pack.ToString()); OpenSim.Framework.Console.MainLog.Instance.Verbose("CLIENT", "unhandled packet " + Pack.ToString());
break; break;
case PacketType.RezScript: case PacketType.RezScript:
//Console.WriteLine(Pack.ToString()); //Console.WriteLine(Pack.ToString());
@ -691,7 +691,6 @@ namespace OpenSim.Region.ClientStack
Convert.ToInt32(selectPacket.ParcelData.ReturnType), this); Convert.ToInt32(selectPacket.ParcelData.ReturnType), this);
} }
break; break;
case PacketType.ParcelObjectOwnersRequest: case PacketType.ParcelObjectOwnersRequest:
ParcelObjectOwnersRequestPacket reqPacket = (ParcelObjectOwnersRequestPacket) Pack; ParcelObjectOwnersRequestPacket reqPacket = (ParcelObjectOwnersRequestPacket) Pack;
if (OnParcelObjectOwnerRequest != null) if (OnParcelObjectOwnerRequest != null)
@ -718,12 +717,15 @@ namespace OpenSim.Region.ClientStack
case PacketType.AgentIsNowWearing: case PacketType.AgentIsNowWearing:
// AgentIsNowWearingPacket wear = (AgentIsNowWearingPacket)Pack; // AgentIsNowWearingPacket wear = (AgentIsNowWearingPacket)Pack;
//Console.WriteLine(Pack.ToString()); OpenSim.Framework.Console.MainLog.Instance.Verbose("CLIENT", "unhandled packet " + Pack.ToString());
break; break;
case PacketType.ObjectScale: case PacketType.ObjectScale:
//OpenSim.Framework.Console.MainLog.Instance.Verbose( Pack.ToString()); OpenSim.Framework.Console.MainLog.Instance.Verbose("CLIENT", "unhandled packet " + Pack.ToString());
break; break;
default:
OpenSim.Framework.Console.MainLog.Instance.Verbose("CLIENT", "unhandled packet " + Pack.ToString());
break;
#endregion #endregion
} }
} }