diff options
Diffstat (limited to 'OpenSim/Region/Application/OpenSim.cs')
-rw-r--r-- | OpenSim/Region/Application/OpenSim.cs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 09958b1..eea008b 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs | |||
@@ -216,14 +216,15 @@ namespace OpenSim | |||
216 | HandleForceUpdate); | 216 | HandleForceUpdate); |
217 | 217 | ||
218 | m_console.Commands.AddCommand("region", false, "debug packet", | 218 | m_console.Commands.AddCommand("region", false, "debug packet", |
219 | "debug packet <level>", | 219 | "debug packet <level> [<avatar-first-name> <avatar-last-name>]", |
220 | "Turn on packet debugging", | 220 | "Turn on packet debugging", |
221 | "If level > 255 then all incoming and outgoing packets are logged.\n" | 221 | "If level > 255 then all incoming and outgoing packets are logged.\n" |
222 | + "If level <= 255 then incoming AgentUpdate and outgoing SimStats and SimulatorViewerTimeMessage packets are not logged.\n" | 222 | + "If level <= 255 then incoming AgentUpdate and outgoing SimStats and SimulatorViewerTimeMessage packets are not logged.\n" |
223 | + "If level <= 200 then incoming RequestImage and outgoing ImagePacket, ImageData, LayerData and CoarseLocationUpdate packets are not logged.\n" | 223 | + "If level <= 200 then incoming RequestImage and outgoing ImagePacket, ImageData, LayerData and CoarseLocationUpdate packets are not logged.\n" |
224 | + "If level <= 100 then incoming ViewerEffect and AgentAnimation and outgoing ViewerEffect and AvatarAnimation packets are not logged.\n" | 224 | + "If level <= 100 then incoming ViewerEffect and AgentAnimation and outgoing ViewerEffect and AvatarAnimation packets are not logged.\n" |
225 | + "If level <= 50 then outgoing ImprovedTerseObjectUpdate packets are not logged.\n" | 225 | + "If level <= 50 then outgoing ImprovedTerseObjectUpdate packets are not logged.\n" |
226 | + "If level <= 0 then no packets are logged.", | 226 | + "If level <= 0 then no packets are logged.\n" |
227 | + "If an avatar name is given then only packets from that avatar are logged", | ||
227 | Debug); | 228 | Debug); |
228 | 229 | ||
229 | m_console.Commands.AddCommand("region", false, "debug scene", | 230 | m_console.Commands.AddCommand("region", false, "debug scene", |
@@ -845,18 +846,21 @@ namespace OpenSim | |||
845 | switch (args[1]) | 846 | switch (args[1]) |
846 | { | 847 | { |
847 | case "packet": | 848 | case "packet": |
849 | string name = null; | ||
850 | if (args.Length == 5) | ||
851 | name = string.Format("{0} {1}", args[3], args[4]); | ||
852 | |||
848 | if (args.Length > 2) | 853 | if (args.Length > 2) |
849 | { | 854 | { |
850 | int newDebug; | 855 | int newDebug; |
851 | if (int.TryParse(args[2], out newDebug)) | 856 | if (int.TryParse(args[2], out newDebug)) |
852 | { | 857 | { |
853 | m_sceneManager.SetDebugPacketLevelOnCurrentScene(newDebug); | 858 | m_sceneManager.SetDebugPacketLevelOnCurrentScene(newDebug, name); |
854 | } | 859 | } |
855 | else | 860 | else |
856 | { | 861 | { |
857 | MainConsole.Instance.Output("packet debug should be 0..255"); | 862 | MainConsole.Instance.Output("packet debug should be 0..255"); |
858 | } | 863 | } |
859 | MainConsole.Instance.Output(String.Format("New packet debug: {0}", newDebug)); | ||
860 | } | 864 | } |
861 | 865 | ||
862 | break; | 866 | break; |