aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid
diff options
context:
space:
mode:
authorJeff Ames2008-02-10 01:57:59 +0000
committerJeff Ames2008-02-10 01:57:59 +0000
commite207284fefa60637e35405ebc87e5e151bd2eabd (patch)
tree6e9954502ea44fe8f6327cb65cfd0026c3322578 /OpenSim/Grid
parentSet svn:ignore in OpenSim/Tests. (diff)
downloadopensim-SC_OLD-e207284fefa60637e35405ebc87e5e151bd2eabd.zip
opensim-SC_OLD-e207284fefa60637e35405ebc87e5e151bd2eabd.tar.gz
opensim-SC_OLD-e207284fefa60637e35405ebc87e5e151bd2eabd.tar.bz2
opensim-SC_OLD-e207284fefa60637e35405ebc87e5e151bd2eabd.tar.xz
Clean up logging calls using String.Format explicitly
Diffstat (limited to 'OpenSim/Grid')
-rw-r--r--OpenSim/Grid/AssetServer/RestService.cs14
-rw-r--r--OpenSim/Grid/InventoryServer/InventoryManager.cs6
-rw-r--r--OpenSim/Grid/UserServer/Main.cs4
3 files changed, 12 insertions, 12 deletions
diff --git a/OpenSim/Grid/AssetServer/RestService.cs b/OpenSim/Grid/AssetServer/RestService.cs
index cb9e1ae..7e6e84c 100644
--- a/OpenSim/Grid/AssetServer/RestService.cs
+++ b/OpenSim/Grid/AssetServer/RestService.cs
@@ -73,8 +73,8 @@ namespace OpenSim.Grid.AssetServer
73 73
74 if (!LLUUID.TryParse(p[0], out assetID)) 74 if (!LLUUID.TryParse(p[0], out assetID))
75 { 75 {
76 m_log.Info(String.Format( 76 m_log.InfoFormat(
77 "[REST]: GET:/asset ignoring request with malformed UUID {0}", p[0])); 77 "[REST]: GET:/asset ignoring request with malformed UUID {0}", p[0]);
78 return result; 78 return result;
79 } 79 }
80 80
@@ -96,9 +96,9 @@ namespace OpenSim.Grid.AssetServer
96 96
97 result = ms.GetBuffer(); 97 result = ms.GetBuffer();
98 98
99 m_log.Info(String.Format( 99 m_log.InfoFormat(
100 "[REST]: GET:/asset found {0} with name {1}, size {2} bytes", 100 "[REST]: GET:/asset found {0} with name {1}, size {2} bytes",
101 assetID, asset.Name, result.Length)); 101 assetID, asset.Name, result.Length);
102 102
103 Array.Resize<byte>(ref result, (int) ms.Length); 103 Array.Resize<byte>(ref result, (int) ms.Length);
104 } 104 }
@@ -107,7 +107,7 @@ namespace OpenSim.Grid.AssetServer
107 if (StatsManager.AssetStats != null) 107 if (StatsManager.AssetStats != null)
108 StatsManager.AssetStats.AddNotFoundRequest(); 108 StatsManager.AssetStats.AddNotFoundRequest();
109 109
110 m_log.Info(String.Format("[REST]: GET:/asset failed to find {0}", assetID)); 110 m_log.InfoFormat("[REST]: GET:/asset failed to find {0}", assetID);
111 } 111 }
112 } 112 }
113 } 113 }
@@ -138,7 +138,7 @@ namespace OpenSim.Grid.AssetServer
138 XmlSerializer xs = new XmlSerializer(typeof (AssetBase)); 138 XmlSerializer xs = new XmlSerializer(typeof (AssetBase));
139 AssetBase asset = (AssetBase) xs.Deserialize(request); 139 AssetBase asset = (AssetBase) xs.Deserialize(request);
140 140
141 m_log.Info(String.Format("[REST]: StoreAndCommitAsset {0}", asset.FullID)); 141 m_log.InfoFormat("[REST]: StoreAndCommitAsset {0}", asset.FullID);
142 m_assetProvider.CreateAsset(asset); 142 m_assetProvider.CreateAsset(asset);
143 m_assetProvider.CommitAssets(); 143 m_assetProvider.CommitAssets();
144 144
diff --git a/OpenSim/Grid/InventoryServer/InventoryManager.cs b/OpenSim/Grid/InventoryServer/InventoryManager.cs
index 35b66b2..a3d8483 100644
--- a/OpenSim/Grid/InventoryServer/InventoryManager.cs
+++ b/OpenSim/Grid/InventoryServer/InventoryManager.cs
@@ -168,14 +168,14 @@ namespace OpenSim.Grid.InventoryServer
168 168
169 private byte[] GetUserInventory(LLUUID userID) 169 private byte[] GetUserInventory(LLUUID userID)
170 { 170 {
171 m_log.Info(String.Format("[" + OpenInventory_Main.LogName + "]: Getting Inventory for user {0}", userID.ToString())); 171 m_log.InfoFormat("[" + OpenInventory_Main.LogName + "]: Getting Inventory for user {0}", userID.ToString());
172 byte[] result = new byte[] {}; 172 byte[] result = new byte[] {};
173 173
174 InventoryFolderBase fb = _manager._databasePlugin.getUserRootFolder(userID); 174 InventoryFolderBase fb = _manager._databasePlugin.getUserRootFolder(userID);
175 if (fb == null) 175 if (fb == null)
176 { 176 {
177 m_log.Info(String.Format("[" + OpenInventory_Main.LogName + "]: Inventory not found for user {0}, creating new", 177 m_log.InfoFormat("[" + OpenInventory_Main.LogName + "]: Inventory not found for user {0}, creating new",
178 userID.ToString())); 178 userID.ToString());
179 CreateDefaultInventory(userID); 179 CreateDefaultInventory(userID);
180 } 180 }
181 181
diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs
index c69416a..b093d02 100644
--- a/OpenSim/Grid/UserServer/Main.cs
+++ b/OpenSim/Grid/UserServer/Main.cs
@@ -156,7 +156,7 @@ namespace OpenSim.Grid.UserServer
156 m_userManager.AddUserProfile(tempfirstname, templastname, tempMD5Passwd, regX, regY); 156 m_userManager.AddUserProfile(tempfirstname, templastname, tempMD5Passwd, regX, regY);
157 } catch (Exception ex) 157 } catch (Exception ex)
158 { 158 {
159 m_log.Error(String.Format("[SERVER]: Error creating user: {0}", ex.ToString())); 159 m_log.ErrorFormat("[SERVER]: Error creating user: {0}", ex.ToString());
160 } 160 }
161 161
162 try 162 try
@@ -166,7 +166,7 @@ namespace OpenSim.Grid.UserServer
166 } 166 }
167 catch (Exception ex) 167 catch (Exception ex)
168 { 168 {
169 m_log.Error(String.Format("[SERVER]: Error creating inventory for user: {0}", ex.ToString())); 169 m_log.ErrorFormat("[SERVER]: Error creating inventory for user: {0}", ex.ToString());
170 } 170 }
171 m_lastCreatedUser = userID; 171 m_lastCreatedUser = userID;
172 break; 172 break;