aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
authorJonathan Freedman2010-10-29 23:59:16 -0400
committerJonathan Freedman2010-10-29 23:59:16 -0400
commit9e7d3e0f2560b3b324f8540278f9a644c176bf88 (patch)
tree0ddf21dd6b4c5c8105cef596e998d0ae7283639c /OpenSim/Region/Framework/Scenes/ScenePresence.cs
parentMerge branch 'master' into mantis5110 (diff)
parenttweak a few more scene presence logging messages for consistency (diff)
downloadopensim-SC_OLD-9e7d3e0f2560b3b324f8540278f9a644c176bf88.zip
opensim-SC_OLD-9e7d3e0f2560b3b324f8540278f9a644c176bf88.tar.gz
opensim-SC_OLD-9e7d3e0f2560b3b324f8540278f9a644c176bf88.tar.bz2
opensim-SC_OLD-9e7d3e0f2560b3b324f8540278f9a644c176bf88.tar.xz
Merge branch 'master' into mantis5110
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs26
1 files changed, 16 insertions, 10 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index afafa5b..8aa507f 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -1075,9 +1075,11 @@ namespace OpenSim.Region.Framework.Scenes
1075 /// </summary> 1075 /// </summary>
1076 public void CompleteMovement(IClientAPI client) 1076 public void CompleteMovement(IClientAPI client)
1077 { 1077 {
1078// DEBUG ON 1078 DateTime startTime = DateTime.Now;
1079 m_log.WarnFormat("[SCENE PRESENCE]: CompleteMovement for {0}",UUID); 1079
1080// DEBUG OFF 1080 m_log.DebugFormat(
1081 "[SCENE PRESENCE]: Completing movement of {0} into region {1}",
1082 client.Name, Scene.RegionInfo.RegionName);
1081 1083
1082 Vector3 look = Velocity; 1084 Vector3 look = Velocity;
1083 if ((look.X == 0) && (look.Y == 0) && (look.Z == 0)) 1085 if ((look.X == 0) && (look.Y == 0) && (look.Z == 0))
@@ -1125,6 +1127,10 @@ namespace OpenSim.Region.Framework.Scenes
1125 if (friendsModule != null) 1127 if (friendsModule != null)
1126 friendsModule.SendFriendsOnlineIfNeeded(ControllingClient); 1128 friendsModule.SendFriendsOnlineIfNeeded(ControllingClient);
1127 } 1129 }
1130
1131 m_log.DebugFormat(
1132 "[SCENE PRESENCE]: Completing movement of {0} into region {1} took {2}ms",
1133 client.Name, Scene.RegionInfo.RegionName, (DateTime.Now - startTime).Milliseconds);
1128 } 1134 }
1129 1135
1130 /// <summary> 1136 /// <summary>
@@ -2378,7 +2384,7 @@ namespace OpenSim.Region.Framework.Scenes
2378 if (remoteAvatar == null) 2384 if (remoteAvatar == null)
2379 return; 2385 return;
2380 2386
2381 IClientAPI cl=remoteAvatar.ControllingClient; 2387 IClientAPI cl = remoteAvatar.ControllingClient;
2382 if (cl == null) 2388 if (cl == null)
2383 return; 2389 return;
2384 2390
@@ -2387,13 +2393,13 @@ namespace OpenSim.Region.Framework.Scenes
2387 2393
2388 if (LocalId == remoteAvatar.LocalId) 2394 if (LocalId == remoteAvatar.LocalId)
2389 { 2395 {
2390 m_log.WarnFormat("[SP] An agent is attempting to send data to itself; {0}",UUID); 2396 m_log.WarnFormat("[SCENEPRESENCE]: An agent is attempting to send avatar data to itself; {0}", UUID);
2391 return; 2397 return;
2392 } 2398 }
2393 2399
2394 if (IsChildAgent) 2400 if (IsChildAgent)
2395 { 2401 {
2396 m_log.WarnFormat("[SCENEPRESENCE] A child agent is attempting to send out avatar data"); 2402 m_log.WarnFormat("[SCENEPRESENCE]: A child agent is attempting to send out avatar data; {0}", UUID);
2397 return; 2403 return;
2398 } 2404 }
2399 2405
@@ -2476,14 +2482,14 @@ namespace OpenSim.Region.Framework.Scenes
2476 { 2482 {
2477 if (m_scene.AvatarFactory.ValidateBakedTextureCache(m_controllingClient)) 2483 if (m_scene.AvatarFactory.ValidateBakedTextureCache(m_controllingClient))
2478 { 2484 {
2479 m_log.WarnFormat("[SP] baked textures are in the ache for {0}",Name); 2485// m_log.WarnFormat("[SCENEPRESENCE]: baked textures are in the cache for {0}", Name);
2480 m_controllingClient.SendAppearance( 2486 m_controllingClient.SendAppearance(
2481 m_appearance.Owner,m_appearance.VisualParams,m_appearance.Texture.GetBytes()); 2487 m_appearance.Owner,m_appearance.VisualParams,m_appearance.Texture.GetBytes());
2482 } 2488 }
2483 } 2489 }
2484 else 2490 else
2485 { 2491 {
2486 m_log.WarnFormat("[SP] AvatarFactory not set"); 2492 m_log.WarnFormat("[SCENEPRESENCE]: AvatarFactory not set for {0}", Name);
2487 } 2493 }
2488 2494
2489 SendInitialFullUpdateToAllClients(); 2495 SendInitialFullUpdateToAllClients();
@@ -2495,7 +2501,7 @@ namespace OpenSim.Region.Framework.Scenes
2495 public void SendAppearanceToAllOtherAgents() 2501 public void SendAppearanceToAllOtherAgents()
2496 { 2502 {
2497// DEBUG ON 2503// DEBUG ON
2498 m_log.WarnFormat("[SP] Send appearance from {0} to all other agents",m_uuid); 2504// m_log.WarnFormat("[SCENEPRESENCE]: Send appearance from {0} to all other agents", m_uuid);
2499// DEBUG OFF 2505// DEBUG OFF
2500 m_perfMonMS = Util.EnvironmentTickCount(); 2506 m_perfMonMS = Util.EnvironmentTickCount();
2501 2507
@@ -2518,7 +2524,7 @@ namespace OpenSim.Region.Framework.Scenes
2518 { 2524 {
2519 if (LocalId == avatar.LocalId) 2525 if (LocalId == avatar.LocalId)
2520 { 2526 {
2521 m_log.WarnFormat("[SP] An agent is attempting to send data to itself; {0}",UUID); 2527 m_log.WarnFormat("[SCENE PRESENCE]: An agent is attempting to send appearance data to itself; {0}", UUID);
2522 return; 2528 return;
2523 } 2529 }
2524 2530