aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services')
-rw-r--r--OpenSim/Services/Connectors/Neighbour/NeighbourServicesConnector.cs4
-rw-r--r--OpenSim/Services/LLLoginService/LLLoginService.cs29
-rw-r--r--OpenSim/Services/UserAccountService/GridUserService.cs33
3 files changed, 57 insertions, 9 deletions
diff --git a/OpenSim/Services/Connectors/Neighbour/NeighbourServicesConnector.cs b/OpenSim/Services/Connectors/Neighbour/NeighbourServicesConnector.cs
index beead97..0f8033d 100644
--- a/OpenSim/Services/Connectors/Neighbour/NeighbourServicesConnector.cs
+++ b/OpenSim/Services/Connectors/Neighbour/NeighbourServicesConnector.cs
@@ -162,7 +162,7 @@ namespace OpenSim.Services.Connectors
162 finally 162 finally
163 { 163 {
164 if (os != null) 164 if (os != null)
165 os.Close(); 165 os.Dispose();
166 } 166 }
167 167
168 // Let's wait for the response 168 // Let's wait for the response
@@ -202,4 +202,4 @@ namespace OpenSim.Services.Connectors
202 return true; 202 return true;
203 } 203 }
204 } 204 }
205} \ No newline at end of file 205}
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs
index 150c2c0..46a5c18 100644
--- a/OpenSim/Services/LLLoginService/LLLoginService.cs
+++ b/OpenSim/Services/LLLoginService/LLLoginService.cs
@@ -384,11 +384,30 @@ namespace OpenSim.Services.LLLoginService
384 // 384 //
385 GridRegion home = null; 385 GridRegion home = null;
386 GridUserInfo guinfo = m_GridUserService.LoggedIn(account.PrincipalID.ToString()); 386 GridUserInfo guinfo = m_GridUserService.LoggedIn(account.PrincipalID.ToString());
387 if (guinfo != null && (guinfo.HomeRegionID != UUID.Zero) && m_GridService != null) 387
388 // We are only going to complain about no home if the user actually tries to login there, to avoid
389 // spamming the console.
390 if (guinfo != null)
388 { 391 {
389 home = m_GridService.GetRegionByUUID(scopeID, guinfo.HomeRegionID); 392 if (guinfo.HomeRegionID == UUID.Zero && startLocation == "home")
393 {
394 m_log.WarnFormat(
395 "[LLOGIN SERVICE]: User {0} tried to login to a 'home' start location but they have none set",
396 account.Name);
397 }
398 else if (m_GridService != null)
399 {
400 home = m_GridService.GetRegionByUUID(scopeID, guinfo.HomeRegionID);
401
402 if (home == null && startLocation == "home")
403 {
404 m_log.WarnFormat(
405 "[LLOGIN SERVICE]: User {0} tried to login to a 'home' start location with ID {1} but this was not found.",
406 account.Name, guinfo.HomeRegionID);
407 }
408 }
390 } 409 }
391 if (guinfo == null) 410 else
392 { 411 {
393 // something went wrong, make something up, so that we don't have to test this anywhere else 412 // something went wrong, make something up, so that we don't have to test this anywhere else
394 m_log.DebugFormat("{0} Failed to fetch GridUserInfo. Creating empty GridUserInfo as home", LogHeader); 413 m_log.DebugFormat("{0} Failed to fetch GridUserInfo. Creating empty GridUserInfo as home", LogHeader);
@@ -509,10 +528,6 @@ namespace OpenSim.Services.LLLoginService
509 528
510 if (home == null) 529 if (home == null)
511 { 530 {
512 m_log.WarnFormat(
513 "[LLOGIN SERVICE]: User {0} {1} tried to login to a 'home' start location but they have none set",
514 account.FirstName, account.LastName);
515
516 tryDefaults = true; 531 tryDefaults = true;
517 } 532 }
518 else 533 else
diff --git a/OpenSim/Services/UserAccountService/GridUserService.cs b/OpenSim/Services/UserAccountService/GridUserService.cs
index bef1691..bfc27b5 100644
--- a/OpenSim/Services/UserAccountService/GridUserService.cs
+++ b/OpenSim/Services/UserAccountService/GridUserService.cs
@@ -50,6 +50,14 @@ namespace OpenSim.Services.UserAccountService
50 50
51 MainConsole.Instance.Commands.AddCommand( 51 MainConsole.Instance.Commands.AddCommand(
52 "Users", false, 52 "Users", false,
53 "show grid user",
54 "show grid user <ID>",
55 "Show grid user entry or entries that match or start with the given ID. This will normally be a UUID.",
56 "This is for debug purposes to see what data is found for a particular user id.",
57 HandleShowGridUser);
58
59 MainConsole.Instance.Commands.AddCommand(
60 "Users", false,
53 "show grid users online", 61 "show grid users online",
54 "show grid users online", 62 "show grid users online",
55 "Show number of grid users registered as online.", 63 "Show number of grid users registered as online.",
@@ -58,6 +66,31 @@ namespace OpenSim.Services.UserAccountService
58 HandleShowGridUsersOnline); 66 HandleShowGridUsersOnline);
59 } 67 }
60 68
69 protected void HandleShowGridUser(string module, string[] cmdparams)
70 {
71 if (cmdparams.Length != 4)
72 {
73 MainConsole.Instance.Output("Usage: show grid user <UUID>");
74 return;
75 }
76
77 GridUserData[] data = m_Database.GetAll(cmdparams[3]);
78
79 foreach (GridUserData gu in data)
80 {
81 ConsoleDisplayList cdl = new ConsoleDisplayList();
82
83 cdl.AddRow("User ID", gu.UserID);
84
85 foreach (KeyValuePair<string,string> kvp in gu.Data)
86 cdl.AddRow(kvp.Key, kvp.Value);
87
88 MainConsole.Instance.Output(cdl.ToString());
89 }
90
91 MainConsole.Instance.OutputFormat("Entries: {0}", data.Length);
92 }
93
61 protected void HandleShowGridUsersOnline(string module, string[] cmdparams) 94 protected void HandleShowGridUsersOnline(string module, string[] cmdparams)
62 { 95 {
63// if (cmdparams.Length != 4) 96// if (cmdparams.Length != 4)