Replace exception logger with helper function

This commit is contained in:
Daniel_I_Am 2021-03-14 18:04:33 +01:00
parent 13a4b5c6c5
commit 34e863bd54
No known key found for this signature in database
GPG Key ID: 80C428FCC9743E84

View File

@ -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);
}