diff options
author | Jeff Ames | 2008-02-10 01:57:59 +0000 |
---|---|---|
committer | Jeff Ames | 2008-02-10 01:57:59 +0000 |
commit | e207284fefa60637e35405ebc87e5e151bd2eabd (patch) | |
tree | 6e9954502ea44fe8f6327cb65cfd0026c3322578 /OpenSim/Framework/Communications/Cache | |
parent | Set svn:ignore in OpenSim/Tests. (diff) | |
download | opensim-SC-e207284fefa60637e35405ebc87e5e151bd2eabd.zip opensim-SC-e207284fefa60637e35405ebc87e5e151bd2eabd.tar.gz opensim-SC-e207284fefa60637e35405ebc87e5e151bd2eabd.tar.bz2 opensim-SC-e207284fefa60637e35405ebc87e5e151bd2eabd.tar.xz |
Clean up logging calls using String.Format explicitly
Diffstat (limited to 'OpenSim/Framework/Communications/Cache')
6 files changed, 10 insertions, 10 deletions
diff --git a/OpenSim/Framework/Communications/Cache/AssetCache.cs b/OpenSim/Framework/Communications/Cache/AssetCache.cs index e81a581..2b06d4f 100644 --- a/OpenSim/Framework/Communications/Cache/AssetCache.cs +++ b/OpenSim/Framework/Communications/Cache/AssetCache.cs | |||
@@ -335,7 +335,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
335 | } | 335 | } |
336 | } | 336 | } |
337 | 337 | ||
338 | m_log.Info(String.Format("[ASSETCACHE]: Adding {0} {1} [{2}]: {3}.", temporary, type, asset.FullID, result)); | 338 | m_log.InfoFormat("[ASSETCACHE]: Adding {0} {1} [{2}]: {3}.", temporary, type, asset.FullID, result); |
339 | } | 339 | } |
340 | 340 | ||
341 | public void DeleteAsset(LLUUID assetID) | 341 | public void DeleteAsset(LLUUID assetID) |
@@ -431,7 +431,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
431 | { | 431 | { |
432 | //if (this.RequestedTextures.ContainsKey(assetID)) | 432 | //if (this.RequestedTextures.ContainsKey(assetID)) |
433 | //{ | 433 | //{ |
434 | // m_log.Warn(String.Format("[ASSET CACHE]: sending image not found for {0}", assetID)); | 434 | // m_log.WarnFormat("[ASSET CACHE]: sending image not found for {0}", assetID); |
435 | // AssetRequest req = this.RequestedTextures[assetID]; | 435 | // AssetRequest req = this.RequestedTextures[assetID]; |
436 | // ImageNotInDatabasePacket notFound = new ImageNotInDatabasePacket(); | 436 | // ImageNotInDatabasePacket notFound = new ImageNotInDatabasePacket(); |
437 | // notFound.ImageID.ID = assetID; | 437 | // notFound.ImageID.ID = assetID; |
@@ -440,7 +440,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
440 | //} | 440 | //} |
441 | //else | 441 | //else |
442 | //{ | 442 | //{ |
443 | // m_log.Error(String.Format("[ASSET CACHE]: Cound not send image not found for {0}", assetID)); | 443 | // m_log.ErrorFormat("[ASSET CACHE]: Cound not send image not found for {0}", assetID); |
444 | //} | 444 | //} |
445 | } | 445 | } |
446 | 446 | ||
diff --git a/OpenSim/Framework/Communications/Cache/AssetServerBase.cs b/OpenSim/Framework/Communications/Cache/AssetServerBase.cs index 1d8f6ba..6cded49 100644 --- a/OpenSim/Framework/Communications/Cache/AssetServerBase.cs +++ b/OpenSim/Framework/Communications/Cache/AssetServerBase.cs | |||
@@ -133,7 +133,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
133 | req.IsTexture = isTexture; | 133 | req.IsTexture = isTexture; |
134 | m_assetRequests.Enqueue(req); | 134 | m_assetRequests.Enqueue(req); |
135 | 135 | ||
136 | m_log.Info(String.Format("[ASSET]: Added {0} to request queue", assetID)); | 136 | m_log.InfoFormat("[ASSET]: Added {0} to request queue", assetID); |
137 | } | 137 | } |
138 | 138 | ||
139 | public virtual void UpdateAsset(AssetBase asset) | 139 | public virtual void UpdateAsset(AssetBase asset) |
diff --git a/OpenSim/Framework/Communications/Cache/AssetTransactionManager.cs b/OpenSim/Framework/Communications/Cache/AssetTransactionManager.cs index 33681fd..e78e209 100644 --- a/OpenSim/Framework/Communications/Cache/AssetTransactionManager.cs +++ b/OpenSim/Framework/Communications/Cache/AssetTransactionManager.cs | |||
@@ -106,7 +106,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
106 | // XXX Weak ass way of doing this by directly manipulating this public dictionary, purely temporary | 106 | // XXX Weak ass way of doing this by directly manipulating this public dictionary, purely temporary |
107 | transactions.XferUploaders.Remove(uploader.TransactionID); | 107 | transactions.XferUploaders.Remove(uploader.TransactionID); |
108 | 108 | ||
109 | //m_log.Info(String.Format("[ASSET TRANSACTIONS] Current uploaders: {0}", transactions.XferUploaders.Count)); | 109 | //m_log.InfoFormat("[ASSET TRANSACTIONS] Current uploaders: {0}", transactions.XferUploaders.Count); |
110 | } | 110 | } |
111 | } | 111 | } |
112 | } | 112 | } |
diff --git a/OpenSim/Framework/Communications/Cache/AssetTransactions.cs b/OpenSim/Framework/Communications/Cache/AssetTransactions.cs index 3799510..da10f85 100644 --- a/OpenSim/Framework/Communications/Cache/AssetTransactions.cs +++ b/OpenSim/Framework/Communications/Cache/AssetTransactions.cs | |||
@@ -115,7 +115,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
115 | 115 | ||
116 | XferUploaders.Remove(uploaderFound.TransactionID); | 116 | XferUploaders.Remove(uploaderFound.TransactionID); |
117 | 117 | ||
118 | //m_log.Info(String.Format("[ASSET TRANSACTIONS] Current uploaders: {0}", XferUploaders.Count)); | 118 | //m_log.InfoFormat("[ASSET TRANSACTIONS] Current uploaders: {0}", XferUploaders.Count); |
119 | } | 119 | } |
120 | } | 120 | } |
121 | } | 121 | } |
diff --git a/OpenSim/Framework/Communications/Cache/GridAssetClient.cs b/OpenSim/Framework/Communications/Cache/GridAssetClient.cs index 48d9ec8..8114eb0 100644 --- a/OpenSim/Framework/Communications/Cache/GridAssetClient.cs +++ b/OpenSim/Framework/Communications/Cache/GridAssetClient.cs | |||
@@ -52,7 +52,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
52 | Stream s = null; | 52 | Stream s = null; |
53 | try | 53 | try |
54 | { | 54 | { |
55 | m_log.Debug(String.Format("[ASSETCACHE]: Querying for {0}", req.AssetID.ToString())); | 55 | m_log.DebugFormat("[ASSETCACHE]: Querying for {0}", req.AssetID.ToString()); |
56 | 56 | ||
57 | RestClient rc = new RestClient(_assetServerUrl); | 57 | RestClient rc = new RestClient(_assetServerUrl); |
58 | rc.AddResourcePath("assets"); | 58 | rc.AddResourcePath("assets"); |
@@ -73,7 +73,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
73 | catch (Exception e) | 73 | catch (Exception e) |
74 | { | 74 | { |
75 | m_log.Error("[ASSETCACHE]: " + e.Message); | 75 | m_log.Error("[ASSETCACHE]: " + e.Message); |
76 | m_log.Debug(String.Format("[ASSETCACHE]: Getting asset {0}", req.AssetID.ToString())); | 76 | m_log.DebugFormat("[ASSETCACHE]: Getting asset {0}", req.AssetID.ToString()); |
77 | m_log.Error("[ASSETCACHE]: " + e.StackTrace); | 77 | m_log.Error("[ASSETCACHE]: " + e.StackTrace); |
78 | } | 78 | } |
79 | 79 | ||
@@ -100,7 +100,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
100 | 100 | ||
101 | // rc.RequestMethod = "POST"; | 101 | // rc.RequestMethod = "POST"; |
102 | // rc.Request(s); | 102 | // rc.Request(s); |
103 | //m_log.Info(String.Format("[ASSET]: Stored {0}", rc)); | 103 | //m_log.InfoFormat("[ASSET]: Stored {0}", rc); |
104 | m_log.Info("[ASSET]: Sending to " + _assetServerUrl + "/assets/"); | 104 | m_log.Info("[ASSET]: Sending to " + _assetServerUrl + "/assets/"); |
105 | RestObjectPoster.BeginPostObject<AssetBase>(_assetServerUrl + "/assets/", asset); | 105 | RestObjectPoster.BeginPostObject<AssetBase>(_assetServerUrl + "/assets/", asset); |
106 | 106 | ||
diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs index 79c0c86..e9765a7 100644 --- a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs +++ b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs | |||
@@ -73,7 +73,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
73 | } | 73 | } |
74 | else | 74 | else |
75 | { | 75 | { |
76 | m_log.Error(String.Format("[USERCACHE]: User profile for user {0} not found", userID)); | 76 | m_log.ErrorFormat("[USERCACHE]: User profile for user {0} not found", userID); |
77 | } | 77 | } |
78 | } | 78 | } |
79 | } | 79 | } |