From 21e47f8ef04bd345eb3c8e0823392a2dbc269e4e Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Thu, 1 Nov 2007 22:01:26 +0000 Subject: debug tracing for asset server hangs --- OpenSim/Framework/Communications/Cache/AssetServerBase.cs | 4 +++- OpenSim/Framework/Communications/Cache/GridAssetClient.cs | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'OpenSim/Framework/Communications/Cache') diff --git a/OpenSim/Framework/Communications/Cache/AssetServerBase.cs b/OpenSim/Framework/Communications/Cache/AssetServerBase.cs index 128e2e6..4ff1024 100644 --- a/OpenSim/Framework/Communications/Cache/AssetServerBase.cs +++ b/OpenSim/Framework/Communications/Cache/AssetServerBase.cs @@ -71,7 +71,9 @@ namespace OpenSim.Framework.Communications.Cache ARequest req = new ARequest(); req.AssetID = assetID; req.IsTexture = isTexture; + MainLog.Instance.Verbose("ASSET","Adding {0} to request queue", assetID); _assetRequests.Enqueue(req); + MainLog.Instance.Verbose("ASSET","Added {0} to request queue", assetID); } public virtual void UpdateAsset(AssetBase asset) @@ -185,4 +187,4 @@ namespace OpenSim.Framework.Communications.Cache assets.ForEach(action); } } -} \ No newline at end of file +} diff --git a/OpenSim/Framework/Communications/Cache/GridAssetClient.cs b/OpenSim/Framework/Communications/Cache/GridAssetClient.cs index ec163fb..64e561b 100644 --- a/OpenSim/Framework/Communications/Cache/GridAssetClient.cs +++ b/OpenSim/Framework/Communications/Cache/GridAssetClient.cs @@ -108,9 +108,11 @@ namespace OpenSim.Framework.Communications.Cache XmlSerializer xs = new XmlSerializer(typeof (AssetBase)); xs.Serialize(s, asset); RestClient rc = new RestClient(_assetServerUrl); + MainLog.Instance.Verbose("ASSET", "Storing {0}", rc); rc.AddResourcePath("assets"); rc.RequestMethod = "POST"; rc.Request(s); + MainLog.Instance.Verbose("ASSET", "Stored {0}", rc); } catch (Exception e) { @@ -131,4 +133,4 @@ namespace OpenSim.Framework.Communications.Cache #endregion } -} \ No newline at end of file +} -- cgit v1.1