aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2022-01-25 12:15:50 +0300
committerGravatar ChrisJL <[email protected]>2022-01-26 03:39:23 +0000
commit335620341046e3b7be547ac9f18d25d1fb9bec55 (patch)
tree394dcf6be9e7bbe69302e1b4b2d54174c9adf29f
parentClean Up Constants File (diff)
Reduce AOC Logging Output
The AOC cog produces a lot of large logs very frequently which have minimal value, causing the logs to be significantly harder to navigate. Signed-off-by: Hassan Abouelela <[email protected]>
-rw-r--r--bot/constants.py2
-rw-r--r--bot/exts/events/advent_of_code/_helpers.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/bot/constants.py b/bot/constants.py
index 7e7ee749..d39f7361 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -55,7 +55,7 @@ class AdventOfCodeLeaderboard:
def session(self) -> str:
"""Return either the actual `session` cookie or the fallback cookie."""
if self.use_fallback_session:
- log.info(f"Returning fallback cookie for board `{self.id}`.")
+ log.trace(f"Returning fallback cookie for board `{self.id}`.")
return AdventOfCode.fallback_session
return self._session
diff --git a/bot/exts/events/advent_of_code/_helpers.py b/bot/exts/events/advent_of_code/_helpers.py
index 15b1329d..6c004901 100644
--- a/bot/exts/events/advent_of_code/_helpers.py
+++ b/bot/exts/events/advent_of_code/_helpers.py
@@ -255,7 +255,7 @@ async def _fetch_leaderboard_data() -> dict[str, Any]:
# Two attempts, one with the original session cookie and one with the fallback session
for attempt in range(1, 3):
- log.info(f"Attempting to fetch leaderboard `{leaderboard.id}` ({attempt}/2)")
+ log.debug(f"Attempting to fetch leaderboard `{leaderboard.id}` ({attempt}/2)")
cookies = {"session": leaderboard.session}
try:
raw_data = await _leaderboard_request(leaderboard_url, leaderboard.id, cookies)