* Adjust log messages so that we don't get a CONNECTION BEGIN for notifications that won't actually lead to a client connection (because they are from a neighbouring teleport

target that needs to trigger a child seeds adjustment on a child agent that has been kept around)
0.6.2-post-fixes
Justin Clarke Casey 2009-01-14 19:53:15 +00:00
parent 7934094cf3
commit 8a08e4980d
1 changed files with 17 additions and 25 deletions

View File

@ -2759,6 +2759,22 @@ namespace OpenSim.Region.Environment.Scenes
/// <param name="agent"></param> /// <param name="agent"></param>
public void NewUserConnection(AgentCircuitData agent) public void NewUserConnection(AgentCircuitData agent)
{ {
/// Diva: Horrible stuff!
capsPaths[agent.AgentID] = agent.CapsPath;
childrenSeeds[agent.AgentID] = ((agent.ChildrenCapSeeds == null) ? new Dictionary<ulong, string>() : agent.ChildrenCapSeeds);
ScenePresence sp = m_sceneGraph.GetScenePresence(agent.AgentID);
if (sp != null)
{
m_log.DebugFormat(
"[SCENE]: Adjusting known seeds for existing agent {0} in {1}",
agent.AgentID, RegionInfo.RegionName);
sp.AdjustKnownSeeds();
return;
}
// Don't disable this log message - it's too helpful // Don't disable this log message - it's too helpful
m_log.DebugFormat( m_log.DebugFormat(
"[CONNECTION BEGIN]: Scene {0} told of incoming client {1} {2} {3} (circuit code {4})", "[CONNECTION BEGIN]: Scene {0} told of incoming client {1} {2} {3} (circuit code {4})",
@ -2770,31 +2786,7 @@ namespace OpenSim.Region.Environment.Scenes
"[CONNECTION BEGIN]: Denied access to: {0} at {1} because the user is on the region banlist", "[CONNECTION BEGIN]: Denied access to: {0} at {1} because the user is on the region banlist",
agent.AgentID, RegionInfo.RegionName); agent.AgentID, RegionInfo.RegionName);
} }
/// Diva: Horrible stuff!
capsPaths[agent.AgentID] = agent.CapsPath;
childrenSeeds[agent.AgentID] = ((agent.ChildrenCapSeeds == null) ? new Dictionary<ulong, string>() : agent.ChildrenCapSeeds);
ScenePresence sp = m_sceneGraph.GetScenePresence(agent.AgentID);
if (sp != null)
{
if (sp.IsChildAgent)
m_log.DebugFormat(
"[CONNECTION BEGIN]: Incoming client for {0} is existing child agent {1}",
RegionInfo.RegionName, agent.AgentID);
else
m_log.DebugFormat(
"[CONNECTION BEGIN]: Incoming client for {0} is existing root agent {1}",
RegionInfo.RegionName, agent.AgentID);
// m_log.DebugFormat(
// "[CONNECTION BEGIN]: Updated existing agent {0} in {1}", agent.AgentID, RegionInfo.RegionName);
sp.AdjustKnownSeeds();
return;
}
AddCapsHandler(agent.AgentID); AddCapsHandler(agent.AgentID);
if (!agent.child) if (!agent.child)