diff options
author | Melanie | 2011-10-25 02:54:41 +0100 |
---|---|---|
committer | Melanie | 2011-10-25 02:54:41 +0100 |
commit | 0cbba1da8dc32e051df14d4a0a12e059bd55927c (patch) | |
tree | 9bf1ffca765e83cefa0b75cafad56e6ca99813c2 /OpenSim/Region/Framework | |
parent | Merge commit '120114e96becc6fee1311300359dcefaf4013c0e' into bigmerge (diff) | |
parent | Allow an avatar to be explicitly named to the "debug packet" command (diff) | |
download | opensim-SC-0cbba1da8dc32e051df14d4a0a12e059bd55927c.zip opensim-SC-0cbba1da8dc32e051df14d4a0a12e059bd55927c.tar.gz opensim-SC-0cbba1da8dc32e051df14d4a0a12e059bd55927c.tar.bz2 opensim-SC-0cbba1da8dc32e051df14d4a0a12e059bd55927c.tar.xz |
Merge commit 'aeb4ff02744573cb91e8991bf9df81412b80e156' into bigmerge
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneManager.cs | 5 |
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, |