diff options
Diffstat (limited to 'OpenSim/Framework')
-rwxr-xr-x | OpenSim/Framework/Console/ConsoleUtil.cs | 20 | ||||
-rwxr-xr-x | OpenSim/Framework/Monitoring/ChecksManager.cs | 2 | ||||
-rwxr-xr-x | OpenSim/Framework/Monitoring/StatsLogger.cs | 4 | ||||
-rwxr-xr-x | OpenSim/Framework/Monitoring/StatsManager.cs | 2 | ||||
-rwxr-xr-x | OpenSim/Framework/Monitoring/WorkManager.cs | 12 | ||||
-rwxr-xr-x | OpenSim/Framework/PluginManager.cs | 6 | ||||
-rwxr-xr-x | OpenSim/Framework/Servers/MainServer.cs | 10 | ||||
-rwxr-xr-x | OpenSim/Framework/Servers/ServerBase.cs | 10 |
8 files changed, 33 insertions, 33 deletions
diff --git a/OpenSim/Framework/Console/ConsoleUtil.cs b/OpenSim/Framework/Console/ConsoleUtil.cs index 5342a29..2f73a8d 100755 --- a/OpenSim/Framework/Console/ConsoleUtil.cs +++ b/OpenSim/Framework/Console/ConsoleUtil.cs | |||
@@ -75,7 +75,7 @@ namespace OpenSim.Framework.Console | |||
75 | { | 75 | { |
76 | if (File.Exists(path)) | 76 | if (File.Exists(path)) |
77 | { | 77 | { |
78 | console.Output("File {0} already exists. Please move or remove it.", null, path); | 78 | console.Output("File {0} already exists. Please move or remove it.", path); |
79 | return false; | 79 | return false; |
80 | } | 80 | } |
81 | 81 | ||
@@ -97,7 +97,7 @@ namespace OpenSim.Framework.Console | |||
97 | if (!UUID.TryParse(rawUuid, out uuid)) | 97 | if (!UUID.TryParse(rawUuid, out uuid)) |
98 | { | 98 | { |
99 | if (console != null) | 99 | if (console != null) |
100 | console.Output("ERROR: {0} is not a valid uuid", null, rawUuid); | 100 | console.Output("ERROR: {0} is not a valid uuid", rawUuid); |
101 | 101 | ||
102 | return false; | 102 | return false; |
103 | } | 103 | } |
@@ -110,7 +110,7 @@ namespace OpenSim.Framework.Console | |||
110 | if (!uint.TryParse(rawLocalId, out localId)) | 110 | if (!uint.TryParse(rawLocalId, out localId)) |
111 | { | 111 | { |
112 | if (console != null) | 112 | if (console != null) |
113 | console.Output("ERROR: {0} is not a valid local id", null, localId); | 113 | console.Output("ERROR: {0} is not a valid local id", localId); |
114 | 114 | ||
115 | return false; | 115 | return false; |
116 | } | 116 | } |
@@ -118,7 +118,7 @@ namespace OpenSim.Framework.Console | |||
118 | if (localId == 0) | 118 | if (localId == 0) |
119 | { | 119 | { |
120 | if (console != null) | 120 | if (console != null) |
121 | console.Output("ERROR: {0} is not a valid local id - it must be greater than 0", null, localId); | 121 | console.Output("ERROR: {0} is not a valid local id - it must be greater than 0", localId); |
122 | 122 | ||
123 | return false; | 123 | return false; |
124 | } | 124 | } |
@@ -150,7 +150,7 @@ namespace OpenSim.Framework.Console | |||
150 | } | 150 | } |
151 | 151 | ||
152 | if (console != null) | 152 | if (console != null) |
153 | console.Output("ERROR: {0} is not a valid UUID or local id", null, rawId); | 153 | console.Output("ERROR: {0} is not a valid UUID or local id", rawId); |
154 | 154 | ||
155 | return false; | 155 | return false; |
156 | } | 156 | } |
@@ -167,7 +167,7 @@ namespace OpenSim.Framework.Console | |||
167 | if (!bool.TryParse(rawConsoleString, out b)) | 167 | if (!bool.TryParse(rawConsoleString, out b)) |
168 | { | 168 | { |
169 | if (console != null) | 169 | if (console != null) |
170 | console.Output("ERROR: {0} is not a true or false value", null, rawConsoleString); | 170 | console.Output("ERROR: {0} is not a true or false value", rawConsoleString); |
171 | 171 | ||
172 | return false; | 172 | return false; |
173 | } | 173 | } |
@@ -187,7 +187,7 @@ namespace OpenSim.Framework.Console | |||
187 | if (!int.TryParse(rawConsoleInt, out i)) | 187 | if (!int.TryParse(rawConsoleInt, out i)) |
188 | { | 188 | { |
189 | if (console != null) | 189 | if (console != null) |
190 | console.Output("ERROR: {0} is not a valid integer", null, rawConsoleInt); | 190 | console.Output("ERROR: {0} is not a valid integer", rawConsoleInt); |
191 | 191 | ||
192 | return false; | 192 | return false; |
193 | } | 193 | } |
@@ -207,7 +207,7 @@ namespace OpenSim.Framework.Console | |||
207 | if (!float.TryParse(rawConsoleInput, out i)) | 207 | if (!float.TryParse(rawConsoleInput, out i)) |
208 | { | 208 | { |
209 | if (console != null) | 209 | if (console != null) |
210 | console.Output("ERROR: {0} is not a valid float", null, rawConsoleInput); | 210 | console.Output("ERROR: {0} is not a valid float", rawConsoleInput); |
211 | 211 | ||
212 | return false; | 212 | return false; |
213 | } | 213 | } |
@@ -227,7 +227,7 @@ namespace OpenSim.Framework.Console | |||
227 | if (!double.TryParse(rawConsoleInput, out i)) | 227 | if (!double.TryParse(rawConsoleInput, out i)) |
228 | { | 228 | { |
229 | if (console != null) | 229 | if (console != null) |
230 | console.Output("ERROR: {0} is not a valid double", null, rawConsoleInput); | 230 | console.Output("ERROR: {0} is not a valid double", rawConsoleInput); |
231 | 231 | ||
232 | return false; | 232 | return false; |
233 | } | 233 | } |
@@ -249,7 +249,7 @@ namespace OpenSim.Framework.Console | |||
249 | if (i < 0) | 249 | if (i < 0) |
250 | { | 250 | { |
251 | if (console != null) | 251 | if (console != null) |
252 | console.Output("ERROR: {0} is not a positive integer", null, rawConsoleInt); | 252 | console.Output("ERROR: {0} is not a positive integer", rawConsoleInt); |
253 | 253 | ||
254 | return false; | 254 | return false; |
255 | } | 255 | } |
diff --git a/OpenSim/Framework/Monitoring/ChecksManager.cs b/OpenSim/Framework/Monitoring/ChecksManager.cs index 100b748..f719099 100755 --- a/OpenSim/Framework/Monitoring/ChecksManager.cs +++ b/OpenSim/Framework/Monitoring/ChecksManager.cs | |||
@@ -88,7 +88,7 @@ namespace OpenSim.Framework.Monitoring | |||
88 | con.Output("check categories available are:"); | 88 | con.Output("check categories available are:"); |
89 | 89 | ||
90 | foreach (string category in RegisteredChecks.Keys) | 90 | foreach (string category in RegisteredChecks.Keys) |
91 | con.Output(" {0}", null, category); | 91 | con.Output(" {0}", category); |
92 | } | 92 | } |
93 | // else | 93 | // else |
94 | // { | 94 | // { |
diff --git a/OpenSim/Framework/Monitoring/StatsLogger.cs b/OpenSim/Framework/Monitoring/StatsLogger.cs index 4369b36..e87c188 100755 --- a/OpenSim/Framework/Monitoring/StatsLogger.cs +++ b/OpenSim/Framework/Monitoring/StatsLogger.cs | |||
@@ -79,7 +79,7 @@ namespace OpenSim.Framework.Monitoring | |||
79 | if (cmd[2] == "start") | 79 | if (cmd[2] == "start") |
80 | { | 80 | { |
81 | Start(); | 81 | Start(); |
82 | con.Output("Now recording all stats to file every {0}ms", null, m_statsLogIntervalMs); | 82 | con.Output("Now recording all stats to file every {0}ms", m_statsLogIntervalMs); |
83 | } | 83 | } |
84 | else if (cmd[2] == "stop") | 84 | else if (cmd[2] == "stop") |
85 | { | 85 | { |
@@ -106,7 +106,7 @@ namespace OpenSim.Framework.Monitoring | |||
106 | sw.WriteLine(line); | 106 | sw.WriteLine(line); |
107 | } | 107 | } |
108 | 108 | ||
109 | MainConsole.Instance.Output("Stats saved to file {0}", null, path); | 109 | MainConsole.Instance.Output("Stats saved to file {0}", path); |
110 | } | 110 | } |
111 | 111 | ||
112 | public static void Start() | 112 | public static void Start() |
diff --git a/OpenSim/Framework/Monitoring/StatsManager.cs b/OpenSim/Framework/Monitoring/StatsManager.cs index 57b9474..9646bd7 100755 --- a/OpenSim/Framework/Monitoring/StatsManager.cs +++ b/OpenSim/Framework/Monitoring/StatsManager.cs | |||
@@ -117,7 +117,7 @@ namespace OpenSim.Framework.Monitoring | |||
117 | { | 117 | { |
118 | con.Output("Statistic categories available are:"); | 118 | con.Output("Statistic categories available are:"); |
119 | foreach (string category in RegisteredStats.Keys) | 119 | foreach (string category in RegisteredStats.Keys) |
120 | con.Output(" {0}", null, category); | 120 | con.Output(" {0}", category); |
121 | } | 121 | } |
122 | else | 122 | else |
123 | { | 123 | { |
diff --git a/OpenSim/Framework/Monitoring/WorkManager.cs b/OpenSim/Framework/Monitoring/WorkManager.cs index f6e0799..ce639b9 100755 --- a/OpenSim/Framework/Monitoring/WorkManager.cs +++ b/OpenSim/Framework/Monitoring/WorkManager.cs | |||
@@ -224,14 +224,14 @@ namespace OpenSim.Framework.Monitoring | |||
224 | } | 224 | } |
225 | else if (subCommand == "status") | 225 | else if (subCommand == "status") |
226 | { | 226 | { |
227 | MainConsole.Instance.Output("Job engine running: {0}", null, JobEngine.IsRunning); | 227 | MainConsole.Instance.Output("Job engine running: {0}", JobEngine.IsRunning); |
228 | 228 | ||
229 | JobEngine.Job job = JobEngine.CurrentJob; | 229 | JobEngine.Job job = JobEngine.CurrentJob; |
230 | MainConsole.Instance.Output("Current job {0}", null, job != null ? job.Name : "none"); | 230 | MainConsole.Instance.Output("Current job {0}", job != null ? job.Name : "none"); |
231 | 231 | ||
232 | MainConsole.Instance.Output( | 232 | MainConsole.Instance.Output( |
233 | "Jobs waiting: {0}", null, JobEngine.IsRunning ? JobEngine.JobsWaiting.ToString() : "n/a"); | 233 | "Jobs waiting: {0}", JobEngine.IsRunning ? JobEngine.JobsWaiting.ToString() : "n/a"); |
234 | MainConsole.Instance.Output("Log Level: {0}", null, JobEngine.LogLevel); | 234 | MainConsole.Instance.Output("Log Level: {0}", JobEngine.LogLevel); |
235 | } | 235 | } |
236 | else if (subCommand == "log") | 236 | else if (subCommand == "log") |
237 | { | 237 | { |
@@ -246,12 +246,12 @@ namespace OpenSim.Framework.Monitoring | |||
246 | // if (ConsoleUtil.TryParseConsoleInt(MainConsole.Instance, args[4], out logLevel)) | 246 | // if (ConsoleUtil.TryParseConsoleInt(MainConsole.Instance, args[4], out logLevel)) |
247 | // { | 247 | // { |
248 | JobEngine.LogLevel = logLevel; | 248 | JobEngine.LogLevel = logLevel; |
249 | MainConsole.Instance.Output("Set debug log level to {0}", null, JobEngine.LogLevel); | 249 | MainConsole.Instance.Output("Set debug log level to {0}", JobEngine.LogLevel); |
250 | // } | 250 | // } |
251 | } | 251 | } |
252 | else | 252 | else |
253 | { | 253 | { |
254 | MainConsole.Instance.Output("Unrecognized job engine subcommand {0}", null, subCommand); | 254 | MainConsole.Instance.Output("Unrecognized job engine subcommand {0}", subCommand); |
255 | } | 255 | } |
256 | } | 256 | } |
257 | } | 257 | } |
diff --git a/OpenSim/Framework/PluginManager.cs b/OpenSim/Framework/PluginManager.cs index c5e860d..794dcc9 100755 --- a/OpenSim/Framework/PluginManager.cs +++ b/OpenSim/Framework/PluginManager.cs | |||
@@ -129,7 +129,7 @@ namespace OpenSim.Framework | |||
129 | } | 129 | } |
130 | 130 | ||
131 | Addin addin = addins[ndx]; | 131 | Addin addin = addins[ndx]; |
132 | MainConsole.Instance.Output("Uninstalling plugin {0}", null, addin.Id); | 132 | MainConsole.Instance.Output("Uninstalling plugin {0}", addin.Id); |
133 | AddinManager.Registry.DisableAddin(addin.Id); | 133 | AddinManager.Registry.DisableAddin(addin.Id); |
134 | addin.Enabled = false; | 134 | addin.Enabled = false; |
135 | IProgressStatus ps = new ConsoleProgressStatus(false); | 135 | IProgressStatus ps = new ConsoleProgressStatus(false); |
@@ -487,7 +487,7 @@ namespace OpenSim.Framework | |||
487 | } | 487 | } |
488 | else | 488 | else |
489 | { | 489 | { |
490 | MainConsole.Instance.Output("Not Enabled in this domain {0}", null, addin.Name); | 490 | MainConsole.Instance.Output("Not Enabled in this domain {0}", addin.Name); |
491 | } | 491 | } |
492 | return; | 492 | return; |
493 | } | 493 | } |
@@ -503,7 +503,7 @@ namespace OpenSim.Framework | |||
503 | 503 | ||
504 | foreach (Addin addin in addins) | 504 | foreach (Addin addin in addins) |
505 | { | 505 | { |
506 | MainConsole.Instance.Output("Addin {0}", null, addin.Name); | 506 | MainConsole.Instance.Output("Addin {0}", addin.Name); |
507 | } | 507 | } |
508 | } | 508 | } |
509 | 509 | ||
diff --git a/OpenSim/Framework/Servers/MainServer.cs b/OpenSim/Framework/Servers/MainServer.cs index f4662fe..af6a63f 100755 --- a/OpenSim/Framework/Servers/MainServer.cs +++ b/OpenSim/Framework/Servers/MainServer.cs | |||
@@ -192,7 +192,7 @@ namespace OpenSim.Framework.Servers | |||
192 | 192 | ||
193 | if (!int.TryParse(rawNewDebug, out newDebug)) | 193 | if (!int.TryParse(rawNewDebug, out newDebug)) |
194 | { | 194 | { |
195 | MainConsole.Instance.Output("{0} is not a valid debug level", null, rawNewDebug); | 195 | MainConsole.Instance.Output("{0} is not a valid debug level", rawNewDebug); |
196 | return; | 196 | return; |
197 | } | 197 | } |
198 | 198 | ||
@@ -205,22 +205,22 @@ namespace OpenSim.Framework.Servers | |||
205 | if (allReqs || inReqs) | 205 | if (allReqs || inReqs) |
206 | { | 206 | { |
207 | MainServer.DebugLevel = newDebug; | 207 | MainServer.DebugLevel = newDebug; |
208 | MainConsole.Instance.Output("IN debug level set to {0}", null, newDebug); | 208 | MainConsole.Instance.Output("IN debug level set to {0}", newDebug); |
209 | } | 209 | } |
210 | 210 | ||
211 | if (allReqs || outReqs) | 211 | if (allReqs || outReqs) |
212 | { | 212 | { |
213 | WebUtil.DebugLevel = newDebug; | 213 | WebUtil.DebugLevel = newDebug; |
214 | MainConsole.Instance.Output("OUT debug level set to {0}", null, newDebug); | 214 | MainConsole.Instance.Output("OUT debug level set to {0}", newDebug); |
215 | } | 215 | } |
216 | } | 216 | } |
217 | else | 217 | else |
218 | { | 218 | { |
219 | if (allReqs || inReqs) | 219 | if (allReqs || inReqs) |
220 | MainConsole.Instance.Output("Current IN debug level is {0}", null, DebugLevel); | 220 | MainConsole.Instance.Output("Current IN debug level is {0}", DebugLevel); |
221 | 221 | ||
222 | if (allReqs || outReqs) | 222 | if (allReqs || outReqs) |
223 | MainConsole.Instance.Output("Current OUT debug level is {0}", null, WebUtil.DebugLevel); | 223 | MainConsole.Instance.Output("Current OUT debug level is {0}", WebUtil.DebugLevel); |
224 | } | 224 | } |
225 | } | 225 | } |
226 | 226 | ||
diff --git a/OpenSim/Framework/Servers/ServerBase.cs b/OpenSim/Framework/Servers/ServerBase.cs index 78341d4..8545012 100755 --- a/OpenSim/Framework/Servers/ServerBase.cs +++ b/OpenSim/Framework/Servers/ServerBase.cs | |||
@@ -492,7 +492,7 @@ namespace OpenSim.Framework.Servers | |||
492 | 492 | ||
493 | if (!int.TryParse(rawLevel, out newLevel)) | 493 | if (!int.TryParse(rawLevel, out newLevel)) |
494 | { | 494 | { |
495 | MainConsole.Instance.Output("{0} is not a valid debug level", null, rawLevel); | 495 | MainConsole.Instance.Output("{0} is not a valid debug level", rawLevel); |
496 | return; | 496 | return; |
497 | } | 497 | } |
498 | 498 | ||
@@ -503,7 +503,7 @@ namespace OpenSim.Framework.Servers | |||
503 | } | 503 | } |
504 | 504 | ||
505 | Util.LogThreadPool = newLevel; | 505 | Util.LogThreadPool = newLevel; |
506 | MainConsole.Instance.Output("LogThreadPool set to {0}", null, newLevel); | 506 | MainConsole.Instance.Output("LogThreadPool set to {0}", newLevel); |
507 | } | 507 | } |
508 | 508 | ||
509 | private void HandleForceGc(string module, string[] args) | 509 | private void HandleForceGc(string module, string[] args) |
@@ -991,9 +991,9 @@ namespace OpenSim.Framework.Servers | |||
991 | } | 991 | } |
992 | 992 | ||
993 | if (Watchdog.AbortThread(threadId)) | 993 | if (Watchdog.AbortThread(threadId)) |
994 | MainConsole.Instance.Output("Aborted thread with id {0}", null, threadId); | 994 | MainConsole.Instance.Output("Aborted thread with id {0}", threadId); |
995 | else | 995 | else |
996 | MainConsole.Instance.Output("ERROR - Thread with id {0} not found in managed threads", null, threadId); | 996 | MainConsole.Instance.Output("ERROR - Thread with id {0} not found in managed threads", threadId); |
997 | } | 997 | } |
998 | 998 | ||
999 | /// <summary> | 999 | /// <summary> |
@@ -1020,7 +1020,7 @@ namespace OpenSim.Framework.Servers | |||
1020 | protected void Notice(string format, params object[] components) | 1020 | protected void Notice(string format, params object[] components) |
1021 | { | 1021 | { |
1022 | if (m_console != null) | 1022 | if (m_console != null) |
1023 | m_console.Output(format, null, components); | 1023 | m_console.Output(format, components); |
1024 | } | 1024 | } |
1025 | 1025 | ||
1026 | public virtual void Shutdown() | 1026 | public virtual void Shutdown() |