diff options
Diffstat (limited to 'OpenSim/Framework/Communications/Cache')
-rw-r--r-- | OpenSim/Framework/Communications/Cache/AssetServerBase.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Framework/Communications/Cache/AssetServerBase.cs b/OpenSim/Framework/Communications/Cache/AssetServerBase.cs index 053cb0f..74b1976 100644 --- a/OpenSim/Framework/Communications/Cache/AssetServerBase.cs +++ b/OpenSim/Framework/Communications/Cache/AssetServerBase.cs | |||
@@ -31,6 +31,7 @@ using System.Threading; | |||
31 | using libsecondlife; | 31 | using libsecondlife; |
32 | using log4net; | 32 | using log4net; |
33 | using OpenSim.Framework.AssetLoader.Filesystem; | 33 | using OpenSim.Framework.AssetLoader.Filesystem; |
34 | using OpenSim.Framework.Statistics; | ||
34 | 35 | ||
35 | namespace OpenSim.Framework.Communications.Cache | 36 | namespace OpenSim.Framework.Communications.Cache |
36 | { | 37 | { |
@@ -80,6 +81,9 @@ namespace OpenSim.Framework.Communications.Cache | |||
80 | { | 81 | { |
81 | m_log.ErrorFormat("[ASSET]: Asset request for {0} threw exception {1}", req.AssetID, e); | 82 | m_log.ErrorFormat("[ASSET]: Asset request for {0} threw exception {1}", req.AssetID, e); |
82 | 83 | ||
84 | if (StatsManager.SimExtraStats != null) | ||
85 | StatsManager.SimExtraStats.AddAssetServiceRequestFailure(); | ||
86 | |||
83 | m_receiver.AssetNotFound(req.AssetID, req.IsTexture); | 87 | m_receiver.AssetNotFound(req.AssetID, req.IsTexture); |
84 | 88 | ||
85 | return; | 89 | return; |
@@ -87,13 +91,13 @@ namespace OpenSim.Framework.Communications.Cache | |||
87 | 91 | ||
88 | if (asset != null) | 92 | if (asset != null) |
89 | { | 93 | { |
90 | m_log.DebugFormat("[ASSET]: Asset {0} received from asset server", req.AssetID); | 94 | //m_log.DebugFormat("[ASSET]: Asset {0} received from asset server", req.AssetID); |
91 | 95 | ||
92 | m_receiver.AssetReceived(asset, req.IsTexture); | 96 | m_receiver.AssetReceived(asset, req.IsTexture); |
93 | } | 97 | } |
94 | else | 98 | else |
95 | { | 99 | { |
96 | m_log.WarnFormat("[ASSET]: Asset {0} not found by asset server", req.AssetID); | 100 | //m_log.WarnFormat("[ASSET]: Asset {0} not found by asset server", req.AssetID); |
97 | 101 | ||
98 | m_receiver.AssetNotFound(req.AssetID, req.IsTexture); | 102 | m_receiver.AssetNotFound(req.AssetID, req.IsTexture); |
99 | } | 103 | } |