aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/BetaGridLikeMoneyModule.cs
diff options
context:
space:
mode:
authorJeff Ames2008-02-05 19:44:27 +0000
committerJeff Ames2008-02-05 19:44:27 +0000
commit6ed5283bc06a62f38eb517e67b975832b603bf61 (patch)
treee5f635018789b73a99ddeca0883a68368fa5eece /OpenSim/Region/Environment/Modules/BetaGridLikeMoneyModule.cs
parentCut down on the number of packets sent during terraforming. Terraforming shou... (diff)
downloadopensim-SC_OLD-6ed5283bc06a62f38eb517e67b975832b603bf61.zip
opensim-SC_OLD-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.gz
opensim-SC_OLD-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.bz2
opensim-SC_OLD-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.xz
Converted logging to use log4net.
Changed LogBase to ConsoleBase, which handles console I/O. This is mostly an in-place conversion, so lots of refactoring can still be done.
Diffstat (limited to 'OpenSim/Region/Environment/Modules/BetaGridLikeMoneyModule.cs')
-rw-r--r--OpenSim/Region/Environment/Modules/BetaGridLikeMoneyModule.cs10
1 files changed, 2 insertions, 8 deletions
diff --git a/OpenSim/Region/Environment/Modules/BetaGridLikeMoneyModule.cs b/OpenSim/Region/Environment/Modules/BetaGridLikeMoneyModule.cs
index 81478a1..d51936b 100644
--- a/OpenSim/Region/Environment/Modules/BetaGridLikeMoneyModule.cs
+++ b/OpenSim/Region/Environment/Modules/BetaGridLikeMoneyModule.cs
@@ -41,8 +41,7 @@ namespace OpenSim.Region.Environment.Modules
41{ 41{
42 public class BetaGridLikeMoneyModule: IRegionModule 42 public class BetaGridLikeMoneyModule: IRegionModule
43 { 43 {
44 44 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
45 private LogBase m_log;
46 45
47 private Dictionary<ulong,Scene> m_scenel = new Dictionary<ulong,Scene>(); 46 private Dictionary<ulong,Scene> m_scenel = new Dictionary<ulong,Scene>();
48 47
@@ -66,8 +65,6 @@ namespace OpenSim.Region.Environment.Modules
66 65
67 public void Initialise(Scene scene, IConfigSource config) 66 public void Initialise(Scene scene, IConfigSource config)
68 { 67 {
69 m_log = MainLog.Instance;
70
71 m_gConfig = config; 68 m_gConfig = config;
72 ReadConfigAndPopulate(); 69 ReadConfigAndPopulate();
73 70
@@ -160,11 +157,8 @@ namespace OpenSim.Region.Environment.Modules
160 } 157 }
161 else 158 else
162 { 159 {
163 MainLog.Instance.Warn("MONEY", "Potential Fraud Warning, got money transfer request for avatar that isn't in this simulator - Details; Sender:" + e.sender.ToString() + " Reciver: " + e.reciever.ToString() + " Amount: " + e.amount.ToString()); 160 m_log.Warn("[MONEY]: Potential Fraud Warning, got money transfer request for avatar that isn't in this simulator - Details; Sender:" + e.sender.ToString() + " Reciver: " + e.reciever.ToString() + " Amount: " + e.amount.ToString());
164 } 161 }
165
166
167
168 } 162 }
169 163
170 private bool doMoneyTranfer(LLUUID Sender, LLUUID Receiver, int amount) 164 private bool doMoneyTranfer(LLUUID Sender, LLUUID Receiver, int amount)