avoid a null ref on get log level
parent
a6abc3d2b6
commit
7572a60993
|
@ -684,6 +684,11 @@ namespace OpenSim.Framework.Servers
|
|||
|
||||
private void ShowLogLevel()
|
||||
{
|
||||
if (null == m_consoleAppender)
|
||||
{
|
||||
Notice("No appender named Console found (see the log4net config file for this executable)!");
|
||||
return;
|
||||
}
|
||||
Notice("Console log level is {0}", m_consoleAppender.Threshold);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue