aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Cache/GridAssetClient.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-02-22 22:54:50 +0000
committerJustin Clarke Casey2008-02-22 22:54:50 +0000
commitfed46ba6a72b5df424909cbc8eff9c6134da3ac1 (patch)
treeb6e7685c5c71da91d83b9837bdc0c8665d59faed /OpenSim/Framework/Communications/Cache/GridAssetClient.cs
parentScriptEngine works again (startup-nully-error gone) (diff)
downloadopensim-SC-fed46ba6a72b5df424909cbc8eff9c6134da3ac1.zip
opensim-SC-fed46ba6a72b5df424909cbc8eff9c6134da3ac1.tar.gz
opensim-SC-fed46ba6a72b5df424909cbc8eff9c6134da3ac1.tar.bz2
opensim-SC-fed46ba6a72b5df424909cbc8eff9c6134da3ac1.tar.xz
* Winnow the debug and info messages associated with stat fetching
* As such, only a request for a non cached asset, the response and failures show up now. * I know lbsa71 only put these in not long ago, so if they are really still required, I think we should think whether we can move the default log4net level off 'Debug'
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}