Add preliminary support for logging outgoing HTTP requests

This commit is contained in:
Ske
2020-08-27 00:07:00 +02:00
parent 2d66c44848
commit f2c18dff41
4 changed files with 136 additions and 0 deletions

View File

@@ -41,6 +41,9 @@ namespace PluralKit.Bot
logger.Information("Initializing bot");
var bot = services.Resolve<Bot>();
bot.Init();
// Install observer for request/responses
DiscordRequestObserver.Install(services);
// Start the Discord shards themselves (handlers already set up)
logger.Information("Connecting to Discord");