Make UMM.AddUser(UUID, string) log message when bad creatorData is given to reflect its location (UMM not Scene) and add the user name and ID.

mb-throttle-test
Justin Clark-Casey (justincc) 2014-11-27 00:21:41 +00:00
parent 62b778ca4d
commit 8a27fc5d61
1 changed files with 8 additions and 4 deletions

View File

@ -598,6 +598,10 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
//creatorData = <endpoint>;<name>
string[] parts = creatorData.Split(';');
if (parts.Length >= 2)
user.FirstName = parts[1].Replace(' ', '.');
if (parts.Length >= 1)
{
user.HomeURL = parts[0];
@ -608,13 +612,13 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
}
catch (UriFormatException)
{
m_log.DebugFormat("[SCENE]: Unable to parse Uri {0}", parts[0]);
m_log.DebugFormat(
"[USER MANAGEMENT MODULE]: Unable to parse home URL {0} for user name {1}, ID {2} when adding user info.",
parts[0], user.FirstName ?? "Unknown", id);
user.LastName = "@unknown";
}
}
if (parts.Length >= 2)
user.FirstName = parts[1].Replace(' ', '.');
}
else
{