aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneManager.cs5
1 files changed, 3 insertions, 2 deletions
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
452 /// console. 452 /// console.
453 /// </summary> 453 /// </summary>
454 /// <param name="newDebug"></param> 454 /// <param name="newDebug"></param>
455 public void SetDebugPacketLevelOnCurrentScene(int newDebug) 455 /// <param name="name">Name of avatar to debug</param>
456 public void SetDebugPacketLevelOnCurrentScene(int newDebug, string name)
456 { 457 {
457 ForEachCurrentScene( 458 ForEachCurrentScene(
458 delegate(Scene scene) 459 delegate(Scene scene)
459 { 460 {
460 scene.ForEachScenePresence(delegate(ScenePresence scenePresence) 461 scene.ForEachScenePresence(delegate(ScenePresence scenePresence)
461 { 462 {
462 if (!scenePresence.IsChildAgent) 463 if (!scenePresence.IsChildAgent && (name == null || scenePresence.Name == name))
463 { 464 {
464 m_log.DebugFormat("Packet debug for {0} {1} set to {2}", 465 m_log.DebugFormat("Packet debug for {0} {1} set to {2}",
465 scenePresence.Firstname, 466 scenePresence.Firstname,