From 34e863bd54aceb453e02f9f4eadb5be705971496 Mon Sep 17 00:00:00 2001 From: Daniel-I-Am Date: Sun, 14 Mar 2021 18:04:33 +0100 Subject: [PATCH] Replace exception logger with helper function --- ChaosBot/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ChaosBot/Program.cs b/ChaosBot/Program.cs index 8753e13..7e01203 100644 --- a/ChaosBot/Program.cs +++ b/ChaosBot/Program.cs @@ -34,7 +34,7 @@ namespace ChaosBot } catch (Exception ex) { - Console.Write($"{MethodBase.GetCurrentMethod()?.ReflectedType?.FullName}: Exception [{ex}] thrown, <[{ex.Message}]>.\n{ex.StackTrace}"); + LoggingFacade.Exception(ex); Environment.Exit(1); }