diff options
author | Charles Krinke | 2009-02-22 20:52:55 +0000 |
---|---|---|
committer | Charles Krinke | 2009-02-22 20:52:55 +0000 |
commit | 8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49 (patch) | |
tree | 96a24a49de82056060dd9b7bab0cb209d5f1a129 /OpenSim/Grid/AssetInventoryServer | |
parent | Allow delivery of object messages gridwide (diff) | |
download | opensim-SC-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.zip opensim-SC-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.tar.gz opensim-SC-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.tar.bz2 opensim-SC-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.tar.xz |
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.
Diffstat (limited to 'OpenSim/Grid/AssetInventoryServer')
-rw-r--r-- | OpenSim/Grid/AssetInventoryServer/Main.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Grid/AssetInventoryServer/Main.cs b/OpenSim/Grid/AssetInventoryServer/Main.cs index 67aaf95..598b754 100644 --- a/OpenSim/Grid/AssetInventoryServer/Main.cs +++ b/OpenSim/Grid/AssetInventoryServer/Main.cs | |||
@@ -28,11 +28,15 @@ | |||
28 | using System; | 28 | using System; |
29 | using Nini.Config; | 29 | using Nini.Config; |
30 | using log4net.Config; | 30 | using log4net.Config; |
31 | using log4net; | ||
32 | using System.Reflection; | ||
31 | 33 | ||
32 | namespace OpenSim.Grid.AssetInventoryServer | 34 | namespace OpenSim.Grid.AssetInventoryServer |
33 | { | 35 | { |
34 | class MainEntry | 36 | class MainEntry |
35 | { | 37 | { |
38 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | ||
39 | |||
36 | static void Main(string[] args) | 40 | static void Main(string[] args) |
37 | { | 41 | { |
38 | XmlConfigurator.Configure(); | 42 | XmlConfigurator.Configure(); |
@@ -46,7 +50,7 @@ namespace OpenSim.Grid.AssetInventoryServer | |||
46 | Console.CancelKeyPress += | 50 | Console.CancelKeyPress += |
47 | delegate(object sender, ConsoleCancelEventArgs e) | 51 | delegate(object sender, ConsoleCancelEventArgs e) |
48 | { | 52 | { |
49 | Console.WriteLine("AssetInventory server is shutting down..."); | 53 | m_log.Info("AssetInventory server is shutting down..."); |
50 | server.Shutdown(); | 54 | server.Shutdown(); |
51 | Environment.Exit(0); | 55 | Environment.Exit(0); |
52 | }; | 56 | }; |