More debug messages

cpu-performance
Diva Canto 2013-07-02 15:39:10 -07:00
parent e984bfb4c6
commit 626940ceb8
2 changed files with 11 additions and 2 deletions

View File

@ -323,6 +323,7 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
GridUserInfo uInfo = m_Scenes[0].GridUserService.GetGridUserInfo(uuid.ToString()); GridUserInfo uInfo = m_Scenes[0].GridUserService.GetGridUserInfo(uuid.ToString());
if (uInfo != null) if (uInfo != null)
{ {
m_log.DebugFormat("[USER MANAGEMENT MODULE]: Found grid user {0}", uInfo.UserID);
string url, first, last, tmp; string url, first, last, tmp;
UUID u; UUID u;
if (Util.ParseUniversalUserIdentifier(uInfo.UserID, out u, out url, out first, out last, out tmp)) if (Util.ParseUniversalUserIdentifier(uInfo.UserID, out u, out url, out first, out last, out tmp))
@ -334,10 +335,14 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
return true; return true;
} }
else
m_log.DebugFormat("[USER MANAGEMENT MODULE]: Unable to parse UUI");
} }
else
m_log.DebugFormat("[USER MANAGEMENT MODULE]: No grid user found");
names[0] = "Unknown"; names[0] = "Unknown";
names[1] = "UserUMMTGUN5"; names[1] = "UserUMMTGUN6";
return false; return false;
} }

View File

@ -46,7 +46,7 @@ namespace OpenSim.Services.UserAccountService
public GridUserService(IConfigSource config) : base(config) public GridUserService(IConfigSource config) : base(config)
{ {
m_log.Debug("[USER GRID SERVICE]: Starting user grid service"); m_log.Debug("[GRID USER SERVICE]: Starting user grid service");
} }
public virtual GridUserInfo GetGridUserInfo(string userID) public virtual GridUserInfo GetGridUserInfo(string userID)
@ -58,13 +58,17 @@ namespace OpenSim.Services.UserAccountService
{ {
GridUserData[] ds = m_Database.GetAll(userID); GridUserData[] ds = m_Database.GetAll(userID);
if (ds == null) if (ds == null)
{
m_log.DebugFormat("[GRID USER SERVICE]: user not found {0}", userID);
return null; return null;
}
if (ds.Length > 0) if (ds.Length > 0)
{ {
d = ds[0]; d = ds[0];
foreach (GridUserData dd in ds) foreach (GridUserData dd in ds)
if (dd.UserID.Length > d.UserID.Length) // find the longest if (dd.UserID.Length > d.UserID.Length) // find the longest
d = dd; d = dd;
m_log.DebugFormat("[GRID USER SERVICE]: Found user {0}", d.UserID);
} }
} }