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...`);
|
log.info(`Cleaning up games...`);
|
||||||
for (var code in active_games) {
|
for (var code in active_games) {
|
||||||
log.debug(`Writing game: ${code} to disk`);
|
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());
|
// writeFileSync(`${db_dir}/${code}`, active_games[code].toJSON());
|
||||||
};
|
};
|
||||||
log.info(`Finished cleanup. Exiting.`);
|
log.info(`Finished cleanup. Exiting.`);
|
||||||
|
|
|
||||||
|
|
@ -106,8 +106,7 @@ export class Game {
|
||||||
};
|
};
|
||||||
|
|
||||||
public toString(): string {
|
public toString(): string {
|
||||||
let player_count = Object.keys(this._players).length;
|
return `Game(code=${this.code},players=${this.player_len})`;
|
||||||
return `Game(code=${this.code},players=${player_count})`;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public toJSON(): string {
|
public toJSON(): string {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue