better logging
All checks were successful
Build and Push Docker Image / build (push) Successful in 12s

This commit is contained in:
Corban-Lee Jones 2024-12-11 23:30:29 +00:00
parent 52e42d42ca
commit da217c1242
2 changed files with 8 additions and 3 deletions

View File

@ -151,7 +151,7 @@ class PlayersCog(commands.Cog):
embed.title = "Player Has Connected"
embed.colour = Colour.brand_green()
await channel.send(embed=embed)
# await channel.send(embed=embed)
async def process_disconnected_player(self, line: str, alert: bool = False):
"""
@ -182,7 +182,7 @@ class PlayersCog(commands.Cog):
embed.title = "Player Has Disconnected"
embed.colour = Colour.brand_red()
await channel.send(embed=embed)
# await channel.send(embed=embed)
async def setup(bot: commands.Bot):

View File

@ -102,7 +102,12 @@ class Player(Model):
# I know this is terrible efficiency-wise, but the tortoise docs
# are so bad and the annotations don't work like Django's models. Deal with it!
for session in sessions:
log.info("session playtime: %s", session.playtime)
log.info(
"session start: %s\nsession end: %s\nsession playtime: %s",
session.connected_at,
session.disconnected_at,
session.playtime
)
total_playtime += session.playtime
return total_playtime