Skip to content

Commit

Permalink
Logging on automatic cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-jvessella committed Feb 5, 2024
1 parent f8712a9 commit ca83d50
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gamebrain/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,13 @@ async def cleanup_dead_sessions(nuke: bool = False):
if session_active_teams and not nuke:
continue
for team in session_active_teams:
logging.info(
f"Cleaning up team {team['id']}."
)
await cleanup_team(team["id"])
logging.info(
f"Cleaning up session {session['id']}."
)
await deactivate_game_session(session["id"])


Expand Down

0 comments on commit ca83d50

Please sign in to comment.