From e207284fefa60637e35405ebc87e5e151bd2eabd Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Sun, 10 Feb 2008 01:57:59 +0000 Subject: Clean up logging calls using String.Format explicitly --- OpenSim/Framework/Communications/Cache/GridAssetClient.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim/Framework/Communications/Cache/GridAssetClient.cs') 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 Stream s = null; try { - m_log.Debug(String.Format("[ASSETCACHE]: Querying for {0}", req.AssetID.ToString())); + m_log.DebugFormat("[ASSETCACHE]: Querying for {0}", req.AssetID.ToString()); RestClient rc = new RestClient(_assetServerUrl); rc.AddResourcePath("assets"); @@ -73,7 +73,7 @@ namespace OpenSim.Framework.Communications.Cache catch (Exception e) { m_log.Error("[ASSETCACHE]: " + e.Message); - m_log.Debug(String.Format("[ASSETCACHE]: Getting asset {0}", req.AssetID.ToString())); + m_log.DebugFormat("[ASSETCACHE]: Getting asset {0}", req.AssetID.ToString()); m_log.Error("[ASSETCACHE]: " + e.StackTrace); } @@ -100,7 +100,7 @@ namespace OpenSim.Framework.Communications.Cache // rc.RequestMethod = "POST"; // rc.Request(s); - //m_log.Info(String.Format("[ASSET]: Stored {0}", rc)); + //m_log.InfoFormat("[ASSET]: Stored {0}", rc); m_log.Info("[ASSET]: Sending to " + _assetServerUrl + "/assets/"); RestObjectPoster.BeginPostObject(_assetServerUrl + "/assets/", asset); -- cgit v1.1