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/Application/Application.cs | 8 ++++---- OpenSim/Region/Application/ConfigurationLoader.cs | 2 +- OpenSim/Region/Application/HGOpenSimNode.cs | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'OpenSim/Region/Application') diff --git a/OpenSim/Region/Application/Application.cs b/OpenSim/Region/Application/Application.cs index b8fa786..017160a 100644 --- a/OpenSim/Region/Application/Application.cs +++ b/OpenSim/Region/Application/Application.cs @@ -55,15 +55,15 @@ namespace OpenSim XmlConfigurator.Configure(); - Console.Write("Performing compatibility checks... "); + m_log.Info("Performing compatibility checks... "); string supported = String.Empty; if (Util.IsEnvironmentSupported(ref supported)) { - Console.WriteLine(" Environment is compatible.\n"); + m_log.Info("Environment is compatible.\n"); } else { - Console.WriteLine(" Environment is unsupported (" + supported + ")\n"); + m_log.Warn("Environment is unsupported (" + supported + ")\n"); } Culture.SetCurrentCulture(); @@ -115,7 +115,7 @@ namespace OpenSim } catch (Exception e) { - Console.WriteLine("Caught exception from command: {0}", e); + m_log.Error("Caught exception from command: {0}", e); } } } diff --git a/OpenSim/Region/Application/ConfigurationLoader.cs b/OpenSim/Region/Application/ConfigurationLoader.cs index f0c57e0..f3f9f29 100644 --- a/OpenSim/Region/Application/ConfigurationLoader.cs +++ b/OpenSim/Region/Application/ConfigurationLoader.cs @@ -265,7 +265,7 @@ namespace OpenSim if (m_configSettings.StorageDll == "OpenSim.DataStore.MonoSqlite.dll") { m_configSettings.StorageDll = "OpenSim.Data.SQLite.dll"; - Console.WriteLine("WARNING: OpenSim.DataStore.MonoSqlite.dll is deprecated. Set storage_plugin to OpenSim.Data.SQLite.dll."); + m_log.Warn("WARNING: OpenSim.DataStore.MonoSqlite.dll is deprecated. Set storage_plugin to OpenSim.Data.SQLite.dll."); Thread.Sleep(3000); } diff --git a/OpenSim/Region/Application/HGOpenSimNode.cs b/OpenSim/Region/Application/HGOpenSimNode.cs index 6ec00fe..ded6443 100644 --- a/OpenSim/Region/Application/HGOpenSimNode.cs +++ b/OpenSim/Region/Application/HGOpenSimNode.cs @@ -192,7 +192,7 @@ namespace OpenSim for (int i = 3; i < cmdparams.Count; i++) mapName += " " + cmdparams[i]; - Console.WriteLine(">> MapName: " + mapName); + m_log.Info(">> MapName: " + mapName); //internalPort = Convert.ToUInt32(cmdparams[4]); //remotingPort = Convert.ToUInt32(cmdparams[5]); } @@ -285,7 +285,7 @@ namespace OpenSim } catch (Exception e) { - Console.WriteLine(e.ToString()); + m_log.Error(e.ToString()); } } @@ -323,9 +323,9 @@ namespace OpenSim private void LinkRegionCmdUsage() { - Console.WriteLine("Usage: link-region :[:]"); - Console.WriteLine("Usage: link-region []"); - Console.WriteLine("Usage: link-region []"); + m_log.Info("Usage: link-region :[:]"); + m_log.Info("Usage: link-region []"); + m_log.Info("Usage: link-region []"); } } } -- cgit v1.1