From 128c7b2d43739bef6b397be9cbe3877c9a31ad7d Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Mon, 12 Nov 2007 19:01:04 +0000 Subject: [PATCH] added verbose output of unhandled packets from the viewer --- .../ClientStack/ClientView.ProcessPackets.cs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs index d285d21e36..7414340c3a 100644 --- a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs +++ b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs @@ -359,7 +359,7 @@ namespace OpenSim.Region.ClientStack } break; case PacketType.ObjectPermissions: - //Console.WriteLine("permissions set " + Pack.ToString()); + OpenSim.Framework.Console.MainLog.Instance.Verbose("CLIENT", "unhandled packet " + Pack.ToString()); break; #endregion @@ -541,7 +541,7 @@ namespace OpenSim.Region.ClientStack } break; case PacketType.MoveTaskInventory: - //Console.WriteLine(Pack.ToString()); + OpenSim.Framework.Console.MainLog.Instance.Verbose("CLIENT", "unhandled packet " + Pack.ToString()); break; case PacketType.RezScript: //Console.WriteLine(Pack.ToString()); @@ -691,7 +691,6 @@ namespace OpenSim.Region.ClientStack Convert.ToInt32(selectPacket.ParcelData.ReturnType), this); } break; - case PacketType.ParcelObjectOwnersRequest: ParcelObjectOwnersRequestPacket reqPacket = (ParcelObjectOwnersRequestPacket) Pack; if (OnParcelObjectOwnerRequest != null) @@ -718,12 +717,15 @@ namespace OpenSim.Region.ClientStack case PacketType.AgentIsNowWearing: // AgentIsNowWearingPacket wear = (AgentIsNowWearingPacket)Pack; - //Console.WriteLine(Pack.ToString()); + OpenSim.Framework.Console.MainLog.Instance.Verbose("CLIENT", "unhandled packet " + Pack.ToString()); break; case PacketType.ObjectScale: - //OpenSim.Framework.Console.MainLog.Instance.Verbose( Pack.ToString()); + OpenSim.Framework.Console.MainLog.Instance.Verbose("CLIENT", "unhandled packet " + Pack.ToString()); break; - + default: + OpenSim.Framework.Console.MainLog.Instance.Verbose("CLIENT", "unhandled packet " + Pack.ToString()); + break; + #endregion } }