Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kazimuth committed Jan 14, 2018
2 parents 7aa88a0 + cb4dbfd commit b655ea6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion battlecode-manager/battlecode_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ def run_game(game, dockers, args, sock_file, scrimmage=False):
team = 'blue'
else:
team = 'red'
name = f'[{planet}:{team}]'

name = '[{}:{}]'.format(planet, team)
logger = Logger(name, print=(not args['terminal_viewer'] and not scrimmage))
docker_inst.stream_logs(line_action=logger)
player_['logger'] = logger
Expand Down
2 changes: 1 addition & 1 deletion battlecode-manager/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def message(self, state_diff):
else:
logged_in = "false"

message = f'{{"logged_in":{logged_in},"client_id":"{self.client_id}","error":{error},"message":{state_diff}}}'
message = '{{"logged_in":{},"client_id":"{}","error":{},"message":{}}}'.format(logged_in, self.client_id, error, state_diff)
return message

def player_handler(self):
Expand Down

0 comments on commit b655ea6

Please sign in to comment.