debug tracing for asset server hangs

This commit is contained in:
Sean Dague
2007-11-01 22:01:26 +00:00
parent 317ef312bd
commit 21e47f8ef0
4 changed files with 20 additions and 5 deletions

View File

@@ -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);
}
}
}
}

View File

@@ -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
}
}
}