aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDiva Canto2013-07-04 08:47:45 -0700
committerDiva Canto2013-07-04 08:47:45 -0700
commit27cdfb7b840423cf8cee08988dc487eeb34d71c7 (patch)
tree200961805a3220208df7051579b2656fedb521fd
parentSquoosh one last opportunity for Unknown Users to creep in. (diff)
downloadopensim-SC_OLD-27cdfb7b840423cf8cee08988dc487eeb34d71c7.zip
opensim-SC_OLD-27cdfb7b840423cf8cee08988dc487eeb34d71c7.tar.gz
opensim-SC_OLD-27cdfb7b840423cf8cee08988dc487eeb34d71c7.tar.bz2
opensim-SC_OLD-27cdfb7b840423cf8cee08988dc487eeb34d71c7.tar.xz
HG Friends: debug an issue where the friends data stored in the DB is incomplete.
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs1
-rw-r--r--OpenSim/Services/Friends/FriendsService.cs9
2 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs
index ae45b99..d8f7dc9 100644
--- a/OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs
@@ -546,6 +546,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
546 FriendsService.StoreFriend(agentID.ToString(), theFriendUUID, 1); 546 FriendsService.StoreFriend(agentID.ToString(), theFriendUUID, 1);
547 // and also the converse 547 // and also the converse
548 FriendsService.StoreFriend(theFriendUUID, agentID.ToString(), 1); 548 FriendsService.StoreFriend(theFriendUUID, agentID.ToString(), 1);
549 m_log.DebugFormat("[HGFRIENDS MODULE]: Stored {0} {01}", agentID, theFriendUUID);
549 550
550 //if (!confirming) 551 //if (!confirming)
551 //{ 552 //{
diff --git a/OpenSim/Services/Friends/FriendsService.cs b/OpenSim/Services/Friends/FriendsService.cs
index e2033ac..dd3f733 100644
--- a/OpenSim/Services/Friends/FriendsService.cs
+++ b/OpenSim/Services/Friends/FriendsService.cs
@@ -29,6 +29,7 @@ using OpenMetaverse;
29using OpenSim.Framework; 29using OpenSim.Framework;
30using System; 30using System;
31using System.Collections.Generic; 31using System.Collections.Generic;
32using System.Reflection;
32using OpenSim.Services.Interfaces; 33using OpenSim.Services.Interfaces;
33using OpenSim.Data; 34using OpenSim.Data;
34using Nini.Config; 35using Nini.Config;
@@ -39,7 +40,12 @@ namespace OpenSim.Services.Friends
39{ 40{
40 public class FriendsService : FriendsServiceBase, IFriendsService 41 public class FriendsService : FriendsServiceBase, IFriendsService
41 { 42 {
42 public FriendsService(IConfigSource config) : base(config) 43 private static readonly ILog m_log =
44 LogManager.GetLogger(
45 MethodBase.GetCurrentMethod().DeclaringType);
46
47 public FriendsService(IConfigSource config)
48 : base(config)
43 { 49 {
44 } 50 }
45 51
@@ -98,6 +104,7 @@ namespace OpenSim.Services.Friends
98 d.Data = new Dictionary<string, string>(); 104 d.Data = new Dictionary<string, string>();
99 d.Data["Flags"] = flags.ToString(); 105 d.Data["Flags"] = flags.ToString();
100 106
107 m_log.DebugFormat("[FRIENDS]: Storing {0} {1}", PrincipalID, Friend);
101 return m_Database.Store(d); 108 return m_Database.Store(d);
102 } 109 }
103 110