avoid a null ref on get log level

master
UbitUmarov 2020-04-15 11:48:52 +01:00
parent a6abc3d2b6
commit 7572a60993
1 changed files with 5 additions and 0 deletions

View File

@ -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);
}