less logging
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import Deck from '@/lib/TarokkaDeck';
|
import Deck from '@/lib/TarokkaDeck';
|
||||||
import generateID from '@/tools/simpleID';
|
import generateID from '@/tools/simpleID';
|
||||||
import parseMilliseconds from '@/tools/parseMilliseconds';
|
import parseMilliseconds from '@/tools/parseMilliseconds';
|
||||||
import { MINUTE, HOUR, DAY } from '@/constants/time';
|
import { HOUR, DAY } from '@/constants/time';
|
||||||
import { GameState, GameUpdate, Settings } from '@/types';
|
import { GameState, GameUpdate, Settings } from '@/types';
|
||||||
|
|
||||||
const deck = new Deck();
|
const deck = new Deck();
|
||||||
@@ -50,7 +50,7 @@ export default class GameStore {
|
|||||||
this.spectators = new Map();
|
this.spectators = new Map();
|
||||||
this.players = new Map();
|
this.players = new Map();
|
||||||
|
|
||||||
setInterval(() => this.log(), 15 * MINUTE);
|
setInterval(() => this.log(), HOUR);
|
||||||
setInterval(() => this.cleanUp(), HOUR);
|
setInterval(() => this.cleanUp(), HOUR);
|
||||||
|
|
||||||
setTimeout(() => this.wrapUp(), tilMidnight());
|
setTimeout(() => this.wrapUp(), tilMidnight());
|
||||||
@@ -174,7 +174,6 @@ export default class GameStore {
|
|||||||
console.log(uptimeLog);
|
console.log(uptimeLog);
|
||||||
console.log(`Games: ${this.dms.size}`);
|
console.log(`Games: ${this.dms.size}`);
|
||||||
console.log(`Players: ${this.players.size}`);
|
console.log(`Players: ${this.players.size}`);
|
||||||
console.log('-'.repeat(uptimeLog.length));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
wrapUp() {
|
wrapUp() {
|
||||||
@@ -186,7 +185,6 @@ export default class GameStore {
|
|||||||
console.log(`Created: ${this.totalCreated}`);
|
console.log(`Created: ${this.totalCreated}`);
|
||||||
console.log(`Expired: ${this.totalExpired}`);
|
console.log(`Expired: ${this.totalExpired}`);
|
||||||
console.log(`Unused: ${this.totalUnused}`);
|
console.log(`Unused: ${this.totalUnused}`);
|
||||||
console.log('='.repeat(uptimeLog.length));
|
|
||||||
|
|
||||||
this.totalCreated = 0;
|
this.totalCreated = 0;
|
||||||
this.totalExpired = 0;
|
this.totalExpired = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user