Change output

This commit is contained in:
Oliver-Akins 2020-10-10 17:29:02 -06:00
parent 435d806b92
commit f30550669f
2 changed files with 2 additions and 3 deletions

View file

@ -40,7 +40,7 @@ function clean_up() {
log.info(`Cleaning up games...`);
for (var code in active_games) {
log.debug(`Writing game: ${code} to disk`);
log.silly(active_games[code]);
log.silly(active_games[code].toString());
// writeFileSync(`${db_dir}/${code}`, active_games[code].toJSON());
};
log.info(`Finished cleanup. Exiting.`);

View file

@ -106,8 +106,7 @@ export class Game {
};
public toString(): string {
let player_count = Object.keys(this._players).length;
return `Game(code=${this.code},players=${player_count})`;
return `Game(code=${this.code},players=${this.player_len})`;
};
public toJSON(): string {