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 --- .../AssetLoader/Filesystem/AssetLoaderFileSystem.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'OpenSim/Framework/AssetLoader') diff --git a/OpenSim/Framework/AssetLoader/Filesystem/AssetLoaderFileSystem.cs b/OpenSim/Framework/AssetLoader/Filesystem/AssetLoaderFileSystem.cs index 9026331..d1f7044 100644 --- a/OpenSim/Framework/AssetLoader/Filesystem/AssetLoaderFileSystem.cs +++ b/OpenSim/Framework/AssetLoader/Filesystem/AssetLoaderFileSystem.cs @@ -55,13 +55,13 @@ namespace OpenSim.Framework.AssetLoader.Filesystem if (!String.IsNullOrEmpty(path)) { - m_log.Info(String.Format("[ASSETS]: Loading: [{0}][{1}]", name, path)); + m_log.InfoFormat("[ASSETS]: Loading: [{0}][{1}]", name, path); LoadAsset(asset, isImage, path); } else { - m_log.Info(String.Format("[ASSETS]: Instantiated: [{0}]", name)); + m_log.InfoFormat("[ASSETS]: Instantiated: [{0}]", name); } return asset; @@ -108,7 +108,7 @@ namespace OpenSim.Framework.AssetLoader.Filesystem } catch (XmlException e) { - m_log.Error(String.Format("[ASSETS]: Error loading {0} : {1}", assetSetPath, e)); + m_log.ErrorFormat("[ASSETS]: Error loading {0} : {1}", assetSetPath, e); } } else @@ -126,7 +126,7 @@ namespace OpenSim.Framework.AssetLoader.Filesystem /// protected void LoadXmlAssetSet(string assetSetPath, List assets) { - m_log.Info(String.Format("[ASSETS]: Loading asset set {0}", assetSetPath)); + m_log.InfoFormat("[ASSETS]: Loading asset set {0}", assetSetPath); if (File.Exists(assetSetPath)) { @@ -152,12 +152,12 @@ namespace OpenSim.Framework.AssetLoader.Filesystem } catch (XmlException e) { - m_log.Error(String.Format("[ASSETS]: Error loading {0} : {1}", assetSetPath, e)); + m_log.ErrorFormat("[ASSETS]: Error loading {0} : {1}", assetSetPath, e); } } else { - m_log.Error(String.Format("[ASSETS]: Asset set file {0} does not exist!", assetSetPath)); + m_log.ErrorFormat("[ASSETS]: Asset set file {0} does not exist!", assetSetPath); } } } -- cgit v1.1