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/Grid/AssetServer/RestService.cs | |
parent | Set svn:ignore in OpenSim/Tests. (diff) | |
download | opensim-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/AssetServer/RestService.cs')
-rw-r--r-- | OpenSim/Grid/AssetServer/RestService.cs | 14 |
1 files changed, 7 insertions, 7 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 | ||