From 8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sun, 22 Feb 2009 20:52:55 +0000 Subject: Mantis#3218. Thank you kindly, TLaukkan (Tommil) for a patch that: * Added log4net dependency to physxplugin in prebuild.xml. * Added missing m_log fields to classes. * Replaced Console.WriteLine with appropriate m_log.Xxxx * Tested that nant test target runs succesfully. * Tested that local opensim sandbox starts up without errors. --- OpenSim/Region/Communications/Local/LocalUserServices.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Communications/Local/LocalUserServices.cs') diff --git a/OpenSim/Region/Communications/Local/LocalUserServices.cs b/OpenSim/Region/Communications/Local/LocalUserServices.cs index f4fe686..a239033 100644 --- a/OpenSim/Region/Communications/Local/LocalUserServices.cs +++ b/OpenSim/Region/Communications/Local/LocalUserServices.cs @@ -29,11 +29,14 @@ using System; using OpenMetaverse; using OpenSim.Framework; using OpenSim.Framework.Communications; +using log4net; +using System.Reflection; namespace OpenSim.Region.Communications.Local { public class LocalUserServices : UserManagerBase { + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private readonly uint m_defaultHomeX; private readonly uint m_defaultHomeY; @@ -64,7 +67,7 @@ namespace OpenSim.Region.Communications.Local return profile; } - Console.WriteLine("Unknown Master User. Sandbox Mode: Creating Account"); + m_log.Debug("Unknown Master User. Sandbox Mode: Creating Account"); AddUser(firstName, lastName, password, "", m_defaultHomeX, m_defaultHomeY); return GetUserProfile(firstName, lastName); } -- cgit v1.1