aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/TemporaryUserProfilePlugin.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-04-29 19:31:48 +0000
committerJustin Clarke Casey2009-04-29 19:31:48 +0000
commit40c2e2e84f50e9a75f26b326a798a280d36687e9 (patch)
tree82487d81c2e8b403b67b2b6978414270df408bc8 /OpenSim/Framework/Communications/TemporaryUserProfilePlugin.cs
parent* Apply further groups xmlrpc to stop an exception in the exception handler (diff)
downloadopensim-SC_OLD-40c2e2e84f50e9a75f26b326a798a280d36687e9.zip
opensim-SC_OLD-40c2e2e84f50e9a75f26b326a798a280d36687e9.tar.gz
opensim-SC_OLD-40c2e2e84f50e9a75f26b326a798a280d36687e9.tar.bz2
opensim-SC_OLD-40c2e2e84f50e9a75f26b326a798a280d36687e9.tar.xz
* Add test to check temp profile creation on iar load
Diffstat (limited to 'OpenSim/Framework/Communications/TemporaryUserProfilePlugin.cs')
-rw-r--r--OpenSim/Framework/Communications/TemporaryUserProfilePlugin.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/TemporaryUserProfilePlugin.cs b/OpenSim/Framework/Communications/TemporaryUserProfilePlugin.cs
index 3b78c99..7478cdd 100644
--- a/OpenSim/Framework/Communications/TemporaryUserProfilePlugin.cs
+++ b/OpenSim/Framework/Communications/TemporaryUserProfilePlugin.cs
@@ -27,6 +27,8 @@
27 27
28using System; 28using System;
29using System.Collections.Generic; 29using System.Collections.Generic;
30using System.Reflection;
31using log4net;
30using OpenMetaverse; 32using OpenMetaverse;
31using OpenSim.Data; 33using OpenSim.Data;
32 34
@@ -37,6 +39,8 @@ namespace OpenSim.Framework.Communications
37 /// </summary> 39 /// </summary>
38 public class TemporaryUserProfilePlugin : IUserDataPlugin 40 public class TemporaryUserProfilePlugin : IUserDataPlugin
39 { 41 {
42 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
43
40 protected Dictionary<UUID, UserProfileData> m_profiles = new Dictionary<UUID, UserProfileData>(); 44 protected Dictionary<UUID, UserProfileData> m_profiles = new Dictionary<UUID, UserProfileData>();
41 45
42 public string Name { get { return "TemporaryUserProfilePlugin"; } } 46 public string Name { get { return "TemporaryUserProfilePlugin"; } }
@@ -47,6 +51,8 @@ namespace OpenSim.Framework.Communications
47 51
48 public UserProfileData GetUserByUUID(UUID user) 52 public UserProfileData GetUserByUUID(UUID user)
49 { 53 {
54 m_log.DebugFormat("[TEMP USER PROFILE]: Received request for {0}", user);
55
50 lock (m_profiles) 56 lock (m_profiles)
51 { 57 {
52 if (m_profiles.ContainsKey(user)) 58 if (m_profiles.ContainsKey(user))
@@ -66,6 +72,8 @@ namespace OpenSim.Framework.Communications
66 72
67 public virtual void AddTemporaryUserProfile(UserProfileData userProfile) 73 public virtual void AddTemporaryUserProfile(UserProfileData userProfile)
68 { 74 {
75 m_log.DebugFormat("[TEMP USER PROFILE]: Adding {0} {1}", userProfile.Name, userProfile.ID);
76
69 lock (m_profiles) 77 lock (m_profiles)
70 { 78 {
71 m_profiles[userProfile.ID] = userProfile; 79 m_profiles[userProfile.ID] = userProfile;