Change output
This commit is contained in:
parent
435d806b92
commit
f30550669f
2 changed files with 2 additions and 3 deletions
|
|
@ -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.`);
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue