aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-10-17 20:58:23 +0100
committerJustin Clark-Casey (justincc)2011-10-17 20:58:23 +0100
commitaeb4ff02744573cb91e8991bf9df81412b80e156 (patch)
tree8821cab3c5fd3482559a6b1038c9facfa7526bd5 /OpenSim/Region/Framework
parentrefactor: Make IClientAPI.DebugPacketFormat a property rather than a setter w... (diff)
downloadopensim-SC_OLD-aeb4ff02744573cb91e8991bf9df81412b80e156.zip
opensim-SC_OLD-aeb4ff02744573cb91e8991bf9df81412b80e156.tar.gz
opensim-SC_OLD-aeb4ff02744573cb91e8991bf9df81412b80e156.tar.bz2
opensim-SC_OLD-aeb4ff02744573cb91e8991bf9df81412b80e156.tar.xz
Allow an avatar to be explicitly named to the "debug packet" command
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,