LogManager: minor fix done.

This commit is contained in:
Shreyas Zare
2020-06-06 16:44:57 +05:30
parent 65fbaac43e
commit a8cec0d33a

View File

@@ -53,7 +53,10 @@ namespace DnsServerCore
AppDomain.CurrentDomain.UnhandledException += delegate (object sender, UnhandledExceptionEventArgs e)
{
Write((Exception)e.ExceptionObject);
lock (_logFileLock)
{
WriteLog(DateTime.UtcNow, e.ExceptionObject.ToString());
}
};
//log consumer thread