* minor: Doc and log message tidy up

* reinstate debug level log message indicating when a child agent is made a root for future debugging purposes
0.6.0-stable
Justin Clarke Casey 2008-10-28 15:46:30 +00:00
parent 2a9796e2aa
commit baa29fcbff
3 changed files with 14 additions and 9 deletions

View File

@ -57,15 +57,14 @@ namespace OpenSim.Region.Environment.Modules.Avatar.AvatarFactory
if (appearance != null)
{
//SetAppearanceAssets(profile, ref appearance);
m_log.InfoFormat("[APPEARANCE] found : {0}", appearance.ToString());
m_log.InfoFormat("[APPEARANCE]: Found : {0}", appearance.ToString());
return true;
}
}
appearance = CreateDefault(avatarId);
m_log.InfoFormat("[APPEARANCE] appearance not found for {0}, creating default", avatarId.ToString());
m_log.InfoFormat("[APPEARANCE]: Appearance not found for {0}, creating default", avatarId);
return false;
}
private AvatarAppearance CreateDefault(UUID avatarId)

View File

@ -2486,6 +2486,12 @@ namespace OpenSim.Region.Environment.Scenes
}
}
/// <summary>
/// Create a scene presence and add it to this scene.
/// </summary>
/// <param name="client"></param>
/// <param name="child"></param>
/// <returns></returns>
protected virtual ScenePresence CreateAndAddScenePresence(IClientAPI client, bool child)
{
AvatarAppearance appearance = null;
@ -2515,11 +2521,11 @@ namespace OpenSim.Region.Environment.Scenes
}
catch (Exception e)
{
m_log.ErrorFormat("[APPEARANCE]: Problem fetching appearance for avatar {0}, {1}, {2}",
client.Name, client.AgentId, e.ToString());
m_log.ErrorFormat("[APPEARANCE]: Problem fetching appearance for avatar {0}, {1}",
client.Name, e);
}
m_log.Warn("[APPEARANCE]: Appearance not found, returning default");
}
/// <summary>

View File

@ -715,9 +715,9 @@ namespace OpenSim.Region.Environment.Scenes
ava.TryGetAvatarAppearance(m_uuid, out m_appearance);
}
// m_log.DebugFormat(
// "[SCENE PRESENCE]: Upgrading child agent {0}, {1} to a root agent in {2} at pos {3}",
// Name, UUID, m_scene.RegionInfo.RegionName, pos);
m_log.DebugFormat(
"[SCENE]: Upgrading child to root agent for {0} in {1}",
Name, m_scene.RegionInfo.RegionName);
if (pos.X < 0 || pos.X > Constants.RegionSize || pos.Y < 0 || pos.Y > Constants.RegionSize || pos.Z < 0)
{