aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Cache/GridAssetClient.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Communications/Cache/GridAssetClient.cs')
-rw-r--r--OpenSim/Framework/Communications/Cache/GridAssetClient.cs18
1 files changed, 10 insertions, 8 deletions
diff --git a/OpenSim/Framework/Communications/Cache/GridAssetClient.cs b/OpenSim/Framework/Communications/Cache/GridAssetClient.cs
index 8114eb0..baa6058 100644
--- a/OpenSim/Framework/Communications/Cache/GridAssetClient.cs
+++ b/OpenSim/Framework/Communications/Cache/GridAssetClient.cs
@@ -52,7 +52,9 @@ namespace OpenSim.Framework.Communications.Cache
52 Stream s = null; 52 Stream s = null;
53 try 53 try
54 { 54 {
55 m_log.DebugFormat("[ASSETCACHE]: Querying for {0}", req.AssetID.ToString()); 55 #if DEBUG
56 //m_log.DebugFormat("[GRID ASSET CLIENT]: Querying for {0}", req.AssetID.ToString());
57 #endif
56 58
57 RestClient rc = new RestClient(_assetServerUrl); 59 RestClient rc = new RestClient(_assetServerUrl);
58 rc.AddResourcePath("assets"); 60 rc.AddResourcePath("assets");
@@ -72,9 +74,9 @@ namespace OpenSim.Framework.Communications.Cache
72 } 74 }
73 catch (Exception e) 75 catch (Exception e)
74 { 76 {
75 m_log.Error("[ASSETCACHE]: " + e.Message); 77 m_log.Error("[GRID ASSET CLIENT]: " + e.Message);
76 m_log.DebugFormat("[ASSETCACHE]: Getting asset {0}", req.AssetID.ToString()); 78 m_log.DebugFormat("[GRID ASSET CLIENT]: Getting asset {0}", req.AssetID.ToString());
77 m_log.Error("[ASSETCACHE]: " + e.StackTrace); 79 m_log.Error("[GRID ASSET CLIENT]: " + e.StackTrace);
78 } 80 }
79 81
80 return null; 82 return null;
@@ -95,19 +97,19 @@ namespace OpenSim.Framework.Communications.Cache
95 // XmlSerializer xs = new XmlSerializer(typeof(AssetBase)); 97 // XmlSerializer xs = new XmlSerializer(typeof(AssetBase));
96 // xs.Serialize(s, asset); 98 // xs.Serialize(s, asset);
97 // RestClient rc = new RestClient(_assetServerUrl); 99 // RestClient rc = new RestClient(_assetServerUrl);
98 m_log.Info("[ASSET]: Storing asset"); 100 m_log.Info("[GRID ASSET CLIENT]: Storing asset");
99 //rc.AddResourcePath("assets"); 101 //rc.AddResourcePath("assets");
100 102
101 // rc.RequestMethod = "POST"; 103 // rc.RequestMethod = "POST";
102 // rc.Request(s); 104 // rc.Request(s);
103 //m_log.InfoFormat("[ASSET]: Stored {0}", rc); 105 //m_log.InfoFormat("[ASSET]: Stored {0}", rc);
104 m_log.Info("[ASSET]: Sending to " + _assetServerUrl + "/assets/"); 106 m_log.Info("[GRID ASSET CLIENT]: Sending to " + _assetServerUrl + "/assets/");
105 RestObjectPoster.BeginPostObject<AssetBase>(_assetServerUrl + "/assets/", asset); 107 RestObjectPoster.BeginPostObject<AssetBase>(_assetServerUrl + "/assets/", asset);
106 108
107 } 109 }
108 catch (Exception e) 110 catch (Exception e)
109 { 111 {
110 m_log.Error("[ASSETS]: " + e.Message); 112 m_log.Error("[GRID ASSET CLIENT]: " + e.Message);
111 } 113 }
112 } 114 }
113 115
@@ -122,4 +124,4 @@ namespace OpenSim.Framework.Communications.Cache
122 124
123 #endregion 125 #endregion
124 } 126 }
125} \ No newline at end of file 127}