From 20b47fce0736f1f887c358cbb29fac64ad36792f Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Fri, 4 Jul 2014 22:59:10 +0100 Subject: Still log (but this time with warning rather than an exception) if we regenerate a new child caps seed for a region where we already have one. I think it's still useful to know this to show up any errors early, but it's reasonable to still carry on rather than throw an exception. Follow on from Diva's commit 9643792 --- .../Framework/EntityTransfer/EntityTransferModule.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/CoreModules') diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index 9abc8ae..f531859 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs @@ -1874,8 +1874,14 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer // m_log.DebugFormat("[XXX] --> {0}", h); //m_log.DebugFormat("[XXX] Adding {0}", region.RegionHandle); if (agent.ChildrenCapSeeds.ContainsKey(region.RegionHandle)) - agent.ChildrenCapSeeds.Remove(region.RegionHandle); - agent.ChildrenCapSeeds.Add(region.RegionHandle, agent.CapsPath); + { + m_log.WarnFormat( + "[ENTITY TRANSFER]: Overwriting caps seed {0} with {1} for region {2} (handle {3}) for {4} in {5}", + agent.ChildrenCapSeeds[region.RegionHandle], agent.CapsPath, + region.RegionName, region.RegionHandle, sp.Name, Scene.Name); + } + + agent.ChildrenCapSeeds[region.RegionHandle] = agent.CapsPath; if (sp.Scene.CapsModule != null) { -- cgit v1.1