Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Tweak debug logging.

  • Loading branch information...
commit 65aaa20d349f46795f4f1e71938a58fa3252b8d5 1 parent 866ce82
@dripton authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  slugathon/net/
  2. +3 −3 slugathon/net/
2  slugathon/net/
@@ -216,7 +216,6 @@ def get_player_info(self, player_id):
def get_player_id(self, player_info):
"""Return the player_id for player_info, from the database."""
with self.connection:
cursor = self.connection.cursor()
# See if that player is already in the database
@@ -224,6 +223,7 @@ def get_player_id(self, player_info):
cursor.execute(query, (player_info,))
row = cursor.fetchone()
if row is None:
+ logging.debug("returning None")
return None
return row["player_id"]
6 slugathon/net/
@@ -132,8 +132,8 @@ def form_game(self, playername, game_name, min_players, max_players,
Return None normally, or an error string if there's a problem.
-"form_game %s %s %s %s %s %s %s %s", playername,
- game_name, min_players, max_players, ai_time_limit,
+"%s %s %s %s %s %s %s %s", playername, game_name,
+ min_players, max_players, ai_time_limit,
player_time_limit, player_class, player_info)
if not game_name:
st = "Games must be named"
@@ -249,7 +249,7 @@ def _spawn_ais(self, game):
for ainame in ainames:
if self._passwd_for_playername(ainame) is None:
- logging.debug("ainames %s", ainames)
+ logging.debug("game %s ainames %s",, ainames)
self.game_to_waiting_ais[] = set()
# Add all AIs to the wait list first, to avoid a race.
for ainame in ainames:
Please sign in to comment.
Something went wrong with that request. Please try again.