better logging
All checks were successful
Build and Push Docker Image / build (push) Successful in 12s
All checks were successful
Build and Push Docker Image / build (push) Successful in 12s
This commit is contained in:
parent
52e42d42ca
commit
da217c1242
@ -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):
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user