From 4701f4b56ce62be617beb1ec5965d134c629ae8b Mon Sep 17 00:00:00 2001 From: Ske Date: Fri, 27 Mar 2020 00:02:56 +0100 Subject: [PATCH] Add proper logging of startup errors --- PluralKit.Bot/Bot.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PluralKit.Bot/Bot.cs b/PluralKit.Bot/Bot.cs index 73af28cc..940e137d 100644 --- a/PluralKit.Bot/Bot.cs +++ b/PluralKit.Bot/Bot.cs @@ -89,6 +89,9 @@ namespace PluralKit.Bot } logger.Information("Shutting down"); + + // Allow the log buffer to flush properly before exiting (needed for fatal errors) + await Task.Delay(1000); } } class Bot