Misc fixes

This commit is contained in:
hondacrx
2020-08-20 23:21:53 -04:00
parent 35e28da605
commit 062eecf20b
6 changed files with 9 additions and 15 deletions
+2 -5
View File
@@ -203,7 +203,7 @@ public class Log
}
case AppenderType.File:
{
string filename = "";
string filename;
if (tokens.Length < 4)
{
if (name != "Server")
@@ -236,7 +236,6 @@ public class Log
if (string.IsNullOrEmpty(appenderName))
return;
LogLevel level = LogLevel.Disabled;
string name = appenderName.Substring(7);
string options = ConfigMgr.GetDefaultValue(appenderName, "");
@@ -254,7 +253,7 @@ public class Log
return;
}
level = (LogLevel)uint.Parse(tokens[0]);
LogLevel level = (LogLevel)uint.Parse(tokens[0]);
if (level > LogLevel.Fatal)
{
Console.WriteLine("Log.CreateLoggerFromConfig: Wrong Log Level {0} for logger {1}", type, name);
@@ -349,8 +348,6 @@ public class Log
appender.setRealmId(id);
}
static string GetLogsDir() { return m_logsDir; }
static Dictionary<byte, Appender> appenders = new Dictionary<byte, Appender>();
static Dictionary<LogFilter, Logger> loggers = new Dictionary<LogFilter, Logger>();
static string m_logsDir;