mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
add current console log level to "show info"
This commit is contained in:
@@ -371,8 +371,7 @@ namespace OpenSim.Framework.Servers
|
||||
switch (showParams[0])
|
||||
{
|
||||
case "info":
|
||||
Notice("Version: " + m_version);
|
||||
Notice("Startup directory: " + m_startupDirectory);
|
||||
ShowInfo();
|
||||
break;
|
||||
|
||||
case "stats":
|
||||
@@ -395,6 +394,14 @@ namespace OpenSim.Framework.Servers
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
protected void ShowInfo()
|
||||
{
|
||||
Notice("Version: " + m_version);
|
||||
Notice("Startup directory: " + m_startupDirectory);
|
||||
if (null != m_consoleAppender)
|
||||
Notice(String.Format("Console log level: {0}", m_consoleAppender.Threshold));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Console output is only possible if a console has been established.
|
||||
|
||||
Reference in New Issue
Block a user