From 081c42ec28e1b29fc8fd8422a6e17199d708135d Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Sat, 7 Sep 2024 17:04:23 +0800 Subject: [PATCH] Added some more debug logging for when retrieving the session cookie --- KfChatDotNetBot/Services/KfTokenService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/KfChatDotNetBot/Services/KfTokenService.cs b/KfChatDotNetBot/Services/KfTokenService.cs index 1239145..cf83015 100644 --- a/KfChatDotNetBot/Services/KfTokenService.cs +++ b/KfChatDotNetBot/Services/KfTokenService.cs @@ -1,4 +1,5 @@ using System.Net; +using System.Text.Json; using HtmlAgilityPack; using KfChatDotNetBot.Settings; using NLog; @@ -148,7 +149,10 @@ public class KfTokenService public string? GetXfSessionCookie() { + _logger.Debug("JSON serialization of all the cookies"); + _logger.Debug(JsonSerializer.Serialize(_cookies.GetAllCookies())); var cookie = _cookies.GetAllCookies()["xf_session"]; + _logger.Debug($"xf_session => {cookie?.Value}"); return cookie?.Value; }