Add proper logging of startup errors

This commit is contained in:
Ske 2020-03-27 00:02:56 +01:00
parent fa70df8f98
commit 4701f4b56c

View File

@ -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