Replace exception logger with helper function
This commit is contained in:
parent
13a4b5c6c5
commit
34e863bd54
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user