more google cloud configuration

This commit is contained in:
Alec
2021-12-23 14:09:27 -05:00
parent e3117879f4
commit 106b073a80
6 changed files with 3469 additions and 18 deletions

View File

@@ -70,7 +70,8 @@ const inGame = io.of('/in-game');
/* Instantiate the singleton game manager */
const gameManager = new GameManager(logger, environment).getInstance();
//const gameManager = new GameManager(logger, environment).getInstance();
const gameManager = new GameManager(logger, globals.ENVIRONMENT.LOCAL).getInstance(); // temporary
/* Instantiate the singleton queue manager */
//const queueManager = new QueueManager(matchmaking, logger).getInstance();

View File

@@ -8,28 +8,29 @@ module.exports = function (logLevel = globals.LOG_LEVEL.INFO) {
console.log('LOG ', now.toGMTString(), ': ', message);
},
error (message = '') {
if (
logLevel === globals.LOG_LEVEL.INFO
) { return; }
const now = new Date();
console.error('ERROR ', now.toGMTString(), ': ', message);
},
warn (message = '') {
if (logLevel === globals.LOG_LEVEL.INFO) return;
if (
logLevel === globals.LOG_LEVEL.INFO
|| logLevel === globals.LOG_LEVEL.ERROR
) return;
const now = new Date();
console.error('WARN ', now.toGMTString(), ': ', message);
},
debug (message = '') {
if (logLevel === globals.LOG_LEVEL.INFO || logLevel === globals.LOG_LEVEL.WARN) return;
if (logLevel === globals.LOG_LEVEL.INFO || logLevel === globals.LOG_LEVEL.ERROR || logLevel === globals.LOG_LEVEL.WARN) return;
const now = new Date();
console.debug('DEBUG ', now.toGMTString(), ': ', message);
},
error (message = '') {
if (
logLevel === globals.LOG_LEVEL.INFO
|| logLevel === globals.LOG_LEVEL.WARN
|| logLevel === globals.LOG_LEVEL.DEBUG
) { return; }
const now = new Date();
console.error('ERROR ', now.toGMTString(), ': ', message);
},
trace(message = '') {
if (
logLevel === globals.LOG_LEVEL.INFO