mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
avoid a null ref on get log level
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user