diff options
Diffstat (limited to 'OpenSim/Grid/AssetInventoryServer/Main.cs')
-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 | }; |