add current console log level to "show info"

viewer-2-initial-appearance
Justin Clark-Casey (justincc) 2011-01-21 23:05:53 +00:00
parent bf5ec8cb88
commit 43f948d691
1 changed files with 9 additions and 2 deletions

View File

@ -371,8 +371,7 @@ namespace OpenSim.Framework.Servers
switch (showParams[0]) switch (showParams[0])
{ {
case "info": case "info":
Notice("Version: " + m_version); ShowInfo();
Notice("Startup directory: " + m_startupDirectory);
break; break;
case "stats": case "stats":
@ -395,6 +394,14 @@ namespace OpenSim.Framework.Servers
break; 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> /// <summary>
/// Console output is only possible if a console has been established. /// Console output is only possible if a console has been established.