* Minor change on region grid asset client to change two store log messages to one

0.6.0-stable
Justin Clarke Casey 2008-03-31 14:19:40 +00:00
parent 2d7e0a4d4a
commit d53dd8a7cc
1 changed files with 7 additions and 4 deletions

View File

@ -94,19 +94,22 @@ namespace OpenSim.Framework.Communications.Cache
// XmlSerializer xs = new XmlSerializer(typeof(AssetBase)); // XmlSerializer xs = new XmlSerializer(typeof(AssetBase));
// xs.Serialize(s, asset); // xs.Serialize(s, asset);
// RestClient rc = new RestClient(_assetServerUrl); // RestClient rc = new RestClient(_assetServerUrl);
m_log.Info("[GRID ASSET CLIENT]: Storing asset");
string assetUrl = _assetServerUrl + "/assets/";
//rc.AddResourcePath("assets"); //rc.AddResourcePath("assets");
// rc.RequestMethod = "POST"; // rc.RequestMethod = "POST";
// rc.Request(s); // rc.Request(s);
//m_log.InfoFormat("[ASSET]: Stored {0}", rc); //m_log.InfoFormat("[ASSET]: Stored {0}", rc);
m_log.Info("[GRID ASSET CLIENT]: Sending to " + _assetServerUrl + "/assets/");
RestObjectPoster.BeginPostObject<AssetBase>(_assetServerUrl + "/assets/", asset);
m_log.InfoFormat("[GRID ASSET CLIENT]: Sending store request for asset {0}", asset.FullID);
RestObjectPoster.BeginPostObject<AssetBase>(assetUrl, asset);
} }
catch (Exception e) catch (Exception e)
{ {
m_log.Error("[GRID ASSET CLIENT]: " + e.Message); m_log.ErrorFormat("[GRID ASSET CLIENT]: {0}", e);
} }
} }