diff options
author | Justin Clark-Casey (justincc) | 2011-01-21 23:05:53 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-01-21 23:05:53 +0000 |
commit | 43f948d6913ab33a9f5e11c631b0d64b2ef73b04 (patch) | |
tree | 76f6e8cc355e9b7f1dcea1e998850c3364386d14 /OpenSim/Framework/Servers | |
parent | remove some mono compiler warnings and unnecessary dictionary instantiations (diff) | |
download | opensim-SC-43f948d6913ab33a9f5e11c631b0d64b2ef73b04.zip opensim-SC-43f948d6913ab33a9f5e11c631b0d64b2ef73b04.tar.gz opensim-SC-43f948d6913ab33a9f5e11c631b0d64b2ef73b04.tar.bz2 opensim-SC-43f948d6913ab33a9f5e11c631b0d64b2ef73b04.tar.xz |
add current console log level to "show info"
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Servers/BaseOpenSimServer.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs index 865a0ed..6eb7686 100644 --- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs +++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs | |||
@@ -371,8 +371,7 @@ namespace OpenSim.Framework.Servers | |||
371 | switch (showParams[0]) | 371 | switch (showParams[0]) |
372 | { | 372 | { |
373 | case "info": | 373 | case "info": |
374 | Notice("Version: " + m_version); | 374 | ShowInfo(); |
375 | Notice("Startup directory: " + m_startupDirectory); | ||
376 | break; | 375 | break; |
377 | 376 | ||
378 | case "stats": | 377 | case "stats": |
@@ -395,6 +394,14 @@ namespace OpenSim.Framework.Servers | |||
395 | break; | 394 | break; |
396 | } | 395 | } |
397 | } | 396 | } |
397 | |||
398 | protected void ShowInfo() | ||
399 | { | ||
400 | Notice("Version: " + m_version); | ||
401 | Notice("Startup directory: " + m_startupDirectory); | ||
402 | if (null != m_consoleAppender) | ||
403 | Notice(String.Format("Console log level: {0}", m_consoleAppender.Threshold)); | ||
404 | } | ||
398 | 405 | ||
399 | /// <summary> | 406 | /// <summary> |
400 | /// Console output is only possible if a console has been established. | 407 | /// Console output is only possible if a console has been established. |