diff options
author | Adam Frisby | 2007-06-05 13:18:44 +0000 |
---|---|---|
committer | Adam Frisby | 2007-06-05 13:18:44 +0000 |
commit | 75f9b25b41b5a80025e17808b5b2d9fe7295d54e (patch) | |
tree | cd96e948447cc9a030c7ce537d25da06ea40db5e /OpenGridServices/OpenUser.Config/UserConfigDb4o | |
parent | * "We are" message is now a status text message. (diff) | |
download | opensim-SC-75f9b25b41b5a80025e17808b5b2d9fe7295d54e.zip opensim-SC-75f9b25b41b5a80025e17808b5b2d9fe7295d54e.tar.gz opensim-SC-75f9b25b41b5a80025e17808b5b2d9fe7295d54e.tar.bz2 opensim-SC-75f9b25b41b5a80025e17808b5b2d9fe7295d54e.tar.xz |
* Fixed OGS build
* Converted to new console interfaces
* Fixed other minor issues which somehow snuck in
Diffstat (limited to '')
-rw-r--r-- | OpenGridServices/OpenUser.Config/UserConfigDb4o/DbUserConfig.cs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/OpenGridServices/OpenUser.Config/UserConfigDb4o/DbUserConfig.cs b/OpenGridServices/OpenUser.Config/UserConfigDb4o/DbUserConfig.cs index a281889..25ba74a 100644 --- a/OpenGridServices/OpenUser.Config/UserConfigDb4o/DbUserConfig.cs +++ b/OpenGridServices/OpenUser.Config/UserConfigDb4o/DbUserConfig.cs | |||
@@ -36,7 +36,7 @@ namespace OpenUser.Config.UserConfigDb4o | |||
36 | { | 36 | { |
37 | public UserConfig GetConfigObject() | 37 | public UserConfig GetConfigObject() |
38 | { | 38 | { |
39 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Loading Db40Config dll"); | 39 | OpenSim.Framework.Console.MainConsole.Instance.Verbose("Loading Db40Config dll"); |
40 | return ( new DbUserConfig()); | 40 | return ( new DbUserConfig()); |
41 | } | 41 | } |
42 | } | 42 | } |
@@ -46,7 +46,7 @@ namespace OpenUser.Config.UserConfigDb4o | |||
46 | private IObjectContainer db; | 46 | private IObjectContainer db; |
47 | 47 | ||
48 | public void LoadDefaults() { | 48 | public void LoadDefaults() { |
49 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.HIGH,"Config.cs:LoadDefaults() - Please press enter to retain default or enter new settings"); | 49 | OpenSim.Framework.Console.MainConsole.Instance.Notice("Config.cs:LoadDefaults() - Please press enter to retain default or enter new settings"); |
50 | 50 | ||
51 | this.DefaultStartupMsg = OpenSim.Framework.Console.MainConsole.Instance.CmdPrompt("Default startup message", "Welcome to OGS"); | 51 | this.DefaultStartupMsg = OpenSim.Framework.Console.MainConsole.Instance.CmdPrompt("Default startup message", "Welcome to OGS"); |
52 | 52 | ||
@@ -60,7 +60,7 @@ namespace OpenUser.Config.UserConfigDb4o | |||
60 | db = Db4oFactory.OpenFile("openuser.yap"); | 60 | db = Db4oFactory.OpenFile("openuser.yap"); |
61 | IObjectSet result = db.Get(typeof(DbUserConfig)); | 61 | IObjectSet result = db.Get(typeof(DbUserConfig)); |
62 | if(result.Count==1) { | 62 | if(result.Count==1) { |
63 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Config.cs:InitConfig() - Found a UserConfig object in the local database, loading"); | 63 | OpenSim.Framework.Console.MainConsole.Instance.Verbose("Config.cs:InitConfig() - Found a UserConfig object in the local database, loading"); |
64 | foreach (DbUserConfig cfg in result) { | 64 | foreach (DbUserConfig cfg in result) { |
65 | this.GridServerURL=cfg.GridServerURL; | 65 | this.GridServerURL=cfg.GridServerURL; |
66 | this.GridSendKey=cfg.GridSendKey; | 66 | this.GridSendKey=cfg.GridSendKey; |
@@ -68,22 +68,22 @@ namespace OpenUser.Config.UserConfigDb4o | |||
68 | this.DefaultStartupMsg=cfg.DefaultStartupMsg; | 68 | this.DefaultStartupMsg=cfg.DefaultStartupMsg; |
69 | } | 69 | } |
70 | } else { | 70 | } else { |
71 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Config.cs:InitConfig() - Could not find object in database, loading precompiled defaults"); | 71 | OpenSim.Framework.Console.MainConsole.Instance.Verbose("Config.cs:InitConfig() - Could not find object in database, loading precompiled defaults"); |
72 | LoadDefaults(); | 72 | LoadDefaults(); |
73 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Writing out default settings to local database"); | 73 | OpenSim.Framework.Console.MainConsole.Instance.Verbose("Writing out default settings to local database"); |
74 | db.Set(this); | 74 | db.Set(this); |
75 | db.Close(); | 75 | db.Close(); |
76 | } | 76 | } |
77 | } catch(Exception e) { | 77 | } catch(Exception e) { |
78 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM,"Config.cs:InitConfig() - Exception occured"); | 78 | OpenSim.Framework.Console.MainConsole.Instance.Warn("Config.cs:InitConfig() - Exception occured"); |
79 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM,e.ToString()); | 79 | OpenSim.Framework.Console.MainConsole.Instance.Warn(e.ToString()); |
80 | } | 80 | } |
81 | 81 | ||
82 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"User settings loaded:"); | 82 | OpenSim.Framework.Console.MainConsole.Instance.Verbose("User settings loaded:"); |
83 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Default startup message: " + this.DefaultStartupMsg); | 83 | OpenSim.Framework.Console.MainConsole.Instance.Verbose("Default startup message: " + this.DefaultStartupMsg); |
84 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Grid server URL: " + this.GridServerURL); | 84 | OpenSim.Framework.Console.MainConsole.Instance.Verbose("Grid server URL: " + this.GridServerURL); |
85 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Key to send to grid: " + this.GridSendKey); | 85 | OpenSim.Framework.Console.MainConsole.Instance.Verbose("Key to send to grid: " + this.GridSendKey); |
86 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Key to expect from grid: " + this.GridRecvKey); | 86 | OpenSim.Framework.Console.MainConsole.Instance.Verbose("Key to expect from grid: " + this.GridRecvKey); |
87 | } | 87 | } |
88 | 88 | ||
89 | 89 | ||