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/Framework/Data.MySQL/MySQLAssetData.cs | |
parent | Set svn:ignore in OpenSim/Tests. (diff) | |
download | opensim-SC-e207284fefa60637e35405ebc87e5e151bd2eabd.zip opensim-SC-e207284fefa60637e35405ebc87e5e151bd2eabd.tar.gz opensim-SC-e207284fefa60637e35405ebc87e5e151bd2eabd.tar.bz2 opensim-SC-e207284fefa60637e35405ebc87e5e151bd2eabd.tar.xz |
Clean up logging calls using String.Format explicitly
Diffstat (limited to 'OpenSim/Framework/Data.MySQL/MySQLAssetData.cs')
-rw-r--r-- | OpenSim/Framework/Data.MySQL/MySQLAssetData.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Framework/Data.MySQL/MySQLAssetData.cs b/OpenSim/Framework/Data.MySQL/MySQLAssetData.cs index f9ef699..0dfe671 100644 --- a/OpenSim/Framework/Data.MySQL/MySQLAssetData.cs +++ b/OpenSim/Framework/Data.MySQL/MySQLAssetData.cs | |||
@@ -100,9 +100,9 @@ namespace OpenSim.Framework.Data.MySQL | |||
100 | } | 100 | } |
101 | catch (Exception e) | 101 | catch (Exception e) |
102 | { | 102 | { |
103 | m_log.Error(String.Format( | 103 | m_log.ErrorFormat( |
104 | "[ASSETS]: MySql failure fetching asset {0}" + Environment.NewLine + e.ToString() | 104 | "[ASSETS]: MySql failure fetching asset {0}" + Environment.NewLine + e.ToString() |
105 | + Environment.NewLine + "Attempting reconnection", assetID)); | 105 | + Environment.NewLine + "Attempting reconnection", assetID); |
106 | _dbConnection.Reconnect(); | 106 | _dbConnection.Reconnect(); |
107 | } | 107 | } |
108 | } | 108 | } |
@@ -139,10 +139,10 @@ namespace OpenSim.Framework.Data.MySQL | |||
139 | } | 139 | } |
140 | catch (Exception e) | 140 | catch (Exception e) |
141 | { | 141 | { |
142 | m_log.Error(String.Format( | 142 | m_log.ErrorFormat( |
143 | "[ASSETS]: " + | 143 | "[ASSETS]: " + |
144 | "MySql failure creating asset {0} with name {1}" + Environment.NewLine + e.ToString() | 144 | "MySql failure creating asset {0} with name {1}" + Environment.NewLine + e.ToString() |
145 | + Environment.NewLine + "Attempting reconnection", asset.FullID, asset.Name)); | 145 | + Environment.NewLine + "Attempting reconnection", asset.FullID, asset.Name); |
146 | _dbConnection.Reconnect(); | 146 | _dbConnection.Reconnect(); |
147 | } | 147 | } |
148 | } | 148 | } |