From aeb4ff02744573cb91e8991bf9df81412b80e156 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Mon, 17 Oct 2011 20:58:23 +0100
Subject: Allow an avatar to be explicitly named to the "debug packet" command
---
OpenSim/Region/Framework/Scenes/SceneManager.cs | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
(limited to 'OpenSim/Region/Framework')
diff --git a/OpenSim/Region/Framework/Scenes/SceneManager.cs b/OpenSim/Region/Framework/Scenes/SceneManager.cs
index c91744c..a58b87d 100644
--- a/OpenSim/Region/Framework/Scenes/SceneManager.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneManager.cs
@@ -452,14 +452,15 @@ namespace OpenSim.Region.Framework.Scenes
/// console.
///
///
- public void SetDebugPacketLevelOnCurrentScene(int newDebug)
+ /// Name of avatar to debug
+ public void SetDebugPacketLevelOnCurrentScene(int newDebug, string name)
{
ForEachCurrentScene(
delegate(Scene scene)
{
scene.ForEachScenePresence(delegate(ScenePresence scenePresence)
{
- if (!scenePresence.IsChildAgent)
+ if (!scenePresence.IsChildAgent && (name == null || scenePresence.Name == name))
{
m_log.DebugFormat("Packet debug for {0} {1} set to {2}",
scenePresence.Firstname,
--
cgit v1.1