mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
Clean up logging calls using String.Format explicitly
This commit is contained in:
@@ -335,7 +335,7 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
}
|
||||
}
|
||||
|
||||
m_log.Info(String.Format("[ASSETCACHE]: Adding {0} {1} [{2}]: {3}.", temporary, type, asset.FullID, result));
|
||||
m_log.InfoFormat("[ASSETCACHE]: Adding {0} {1} [{2}]: {3}.", temporary, type, asset.FullID, result);
|
||||
}
|
||||
|
||||
public void DeleteAsset(LLUUID assetID)
|
||||
@@ -431,7 +431,7 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
{
|
||||
//if (this.RequestedTextures.ContainsKey(assetID))
|
||||
//{
|
||||
// m_log.Warn(String.Format("[ASSET CACHE]: sending image not found for {0}", assetID));
|
||||
// m_log.WarnFormat("[ASSET CACHE]: sending image not found for {0}", assetID);
|
||||
// AssetRequest req = this.RequestedTextures[assetID];
|
||||
// ImageNotInDatabasePacket notFound = new ImageNotInDatabasePacket();
|
||||
// notFound.ImageID.ID = assetID;
|
||||
@@ -440,7 +440,7 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// m_log.Error(String.Format("[ASSET CACHE]: Cound not send image not found for {0}", assetID));
|
||||
// m_log.ErrorFormat("[ASSET CACHE]: Cound not send image not found for {0}", assetID);
|
||||
//}
|
||||
}
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
req.IsTexture = isTexture;
|
||||
m_assetRequests.Enqueue(req);
|
||||
|
||||
m_log.Info(String.Format("[ASSET]: Added {0} to request queue", assetID));
|
||||
m_log.InfoFormat("[ASSET]: Added {0} to request queue", assetID);
|
||||
}
|
||||
|
||||
public virtual void UpdateAsset(AssetBase asset)
|
||||
|
||||
@@ -106,7 +106,7 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
// XXX Weak ass way of doing this by directly manipulating this public dictionary, purely temporary
|
||||
transactions.XferUploaders.Remove(uploader.TransactionID);
|
||||
|
||||
//m_log.Info(String.Format("[ASSET TRANSACTIONS] Current uploaders: {0}", transactions.XferUploaders.Count));
|
||||
//m_log.InfoFormat("[ASSET TRANSACTIONS] Current uploaders: {0}", transactions.XferUploaders.Count);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
|
||||
XferUploaders.Remove(uploaderFound.TransactionID);
|
||||
|
||||
//m_log.Info(String.Format("[ASSET TRANSACTIONS] Current uploaders: {0}", XferUploaders.Count));
|
||||
//m_log.InfoFormat("[ASSET TRANSACTIONS] Current uploaders: {0}", XferUploaders.Count);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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<AssetBase>(_assetServerUrl + "/assets/", asset);
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
}
|
||||
else
|
||||
{
|
||||
m_log.Error(String.Format("[USERCACHE]: User profile for user {0} not found", userID));
|
||||
m_log.ErrorFormat("[USERCACHE]: User profile for user {0} not found", userID);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user