Skip to content

Commit 95bf3b0

Browse files
Revert "Log actual exception instead of ThreapdExceptionEventArgs or UnhandledExceptionEventArgs"
This reverts commit 79d59d9.
1 parent 4a3f5ac commit 95bf3b0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/LogExpert/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ private static void ShowUnhandledException (object exceptionObject)
319319

320320
private static void Application_ThreadException (object sender, ThreadExceptionEventArgs e)
321321
{
322-
_logger.Fatal(e.Exception, "Application.ThreadException: ");
322+
_logger.Fatal(e);
323323

324324
Thread thread = new(ShowUnhandledException)
325325
{
@@ -333,7 +333,7 @@ private static void Application_ThreadException (object sender, ThreadExceptionE
333333

334334
private static void CurrentDomain_UnhandledException (object sender, UnhandledExceptionEventArgs e)
335335
{
336-
_logger.Fatal(e.ExceptionObject as Exception, "AppDomain.CurrentDomain.UnhandledException: ");
336+
_logger.Fatal(e);
337337

338338
var exceptionObject = e.ExceptionObject;
339339

0 commit comments

Comments
 (0)