mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Small asset cache addition. Comment a debug output left in CAPS
This commit is contained in:
@@ -365,7 +365,7 @@ namespace OpenSim.Framework.Communications.Capabilities
|
||||
|
||||
public string FetchInventoryDescendentsRequest(string request, string path, string param,OSHttpRequest httpRequest, OSHttpResponse httpResponse)
|
||||
{
|
||||
m_log.Debug("[CAPS]: FetchInventoryDescendentsRequest in region: " + m_regionName + " request is "+request);
|
||||
// m_log.Debug("[CAPS]: FetchInventoryDescendentsRequest in region: " + m_regionName + "request is "+request);
|
||||
|
||||
// nasty temporary hack here, the linden client falsely identifies the uuid 00000000-0000-0000-0000-000000000000 as a string which breaks us
|
||||
// correctly mark it as a uuid
|
||||
@@ -425,8 +425,8 @@ namespace OpenSim.Framework.Communications.Capabilities
|
||||
response = "<llsd><map><key>folders</key><array>" + response + "</array></map></llsd>";
|
||||
}
|
||||
|
||||
m_log.DebugFormat("[CAPS]: Replying to CAPS fetch inventory request with following xml");
|
||||
m_log.Debug("[CAPS] "+response);
|
||||
//m_log.DebugFormat("[CAPS]: Replying to CAPS fetch inventory request with following xml");
|
||||
//m_log.Debug("[CAPS] "+response);
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
@@ -44,6 +44,8 @@ namespace OpenSim.Region.CoreModules.Asset
|
||||
MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
private bool m_Enabled = false;
|
||||
private Dictionary<Scene, IAssetService> m_AssetService =
|
||||
new Dictionary<Scene, IAssetService>();
|
||||
|
||||
public string Name
|
||||
{
|
||||
@@ -94,6 +96,15 @@ namespace OpenSim.Region.CoreModules.Asset
|
||||
|
||||
public void RegionLoaded(Scene scene)
|
||||
{
|
||||
if (!m_Enabled)
|
||||
return;
|
||||
|
||||
m_AssetService[scene] =
|
||||
scene.RequestModuleInterface<IAssetService>();
|
||||
|
||||
if (m_AssetService[scene] != null)
|
||||
m_log.InfoFormat("[ASSET CACHE]: Enabled for region {0}",
|
||||
scene.RegionInfo.RegionName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user