From 85488c293d68c3c20aeb48809d3b41496992d44f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81d=C3=A1m=20Kov=C3=A1cs?= Date: Mon, 28 Aug 2023 22:13:27 +0200 Subject: [PATCH] Gui logging fix --- src/GuiApp/Avalonia/FileTime.GuiApp/Program.cs | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/GuiApp/Avalonia/FileTime.GuiApp/Program.cs b/src/GuiApp/Avalonia/FileTime.GuiApp/Program.cs index 59786f4..08bde10 100644 --- a/src/GuiApp/Avalonia/FileTime.GuiApp/Program.cs +++ b/src/GuiApp/Avalonia/FileTime.GuiApp/Program.cs @@ -92,15 +92,11 @@ public static class Program => HandleUnhandledException(sender, e.Exception); private static void HandleUnhandledException(object? sender, Exception? ex, [CallerMemberName] string caller = "") - { - Log.Fatal( - ex, - "An unhandled exception come from '{Caller}' exception handler from an object of type '{Type}' and value '{Value}': {Exception}", - caller, - sender?.GetType().ToString() ?? "null", - sender?.ToString() ?? "null", - ex); - - Log.CloseAndFlush(); - } + => Log.Warning( + ex, + "An unhandled exception come from '{Caller}' exception handler from an object of type '{Type}' and value '{Value}': {Exception}", + caller, + sender?.GetType().ToString() ?? "null", + sender?.ToString() ?? "null", + ex); } \ No newline at end of file