From d53dd8a7cc883baf611e480d538f7a9d240681b3 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 31 Mar 2008 14:19:40 +0000 Subject: * Minor change on region grid asset client to change two store log messages to one --- OpenSim/Framework/Communications/Cache/GridAssetClient.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'OpenSim/Framework/Communications/Cache') diff --git a/OpenSim/Framework/Communications/Cache/GridAssetClient.cs b/OpenSim/Framework/Communications/Cache/GridAssetClient.cs index b952af2..3e703d2 100644 --- a/OpenSim/Framework/Communications/Cache/GridAssetClient.cs +++ b/OpenSim/Framework/Communications/Cache/GridAssetClient.cs @@ -94,19 +94,22 @@ namespace OpenSim.Framework.Communications.Cache // XmlSerializer xs = new XmlSerializer(typeof(AssetBase)); // xs.Serialize(s, asset); // RestClient rc = new RestClient(_assetServerUrl); - m_log.Info("[GRID ASSET CLIENT]: Storing asset"); + + string assetUrl = _assetServerUrl + "/assets/"; + //rc.AddResourcePath("assets"); // rc.RequestMethod = "POST"; // rc.Request(s); //m_log.InfoFormat("[ASSET]: Stored {0}", rc); - m_log.Info("[GRID ASSET CLIENT]: Sending to " + _assetServerUrl + "/assets/"); - RestObjectPoster.BeginPostObject(_assetServerUrl + "/assets/", asset); + m_log.InfoFormat("[GRID ASSET CLIENT]: Sending store request for asset {0}", asset.FullID); + + RestObjectPoster.BeginPostObject(assetUrl, asset); } catch (Exception e) { - m_log.Error("[GRID ASSET CLIENT]: " + e.Message); + m_log.ErrorFormat("[GRID ASSET CLIENT]: {0}", e); } } -- cgit v1.1