updates for deployment

This commit is contained in:
AlecM33
2022-05-12 12:08:16 -04:00
parent 42291b4f59
commit bf2cac2595
6 changed files with 33 additions and 30 deletions

View File

@@ -37,7 +37,7 @@ module.exports = function (logLevel = globals.LOG_LEVEL.INFO) {
|| logLevel === globals.LOG_LEVEL.WARN
|| logLevel === globals.LOG_LEVEL.DEBUG
|| logLevel === globals.LOG_LEVEL.ERROR
) { return; }
) return;
const now = new Date();
console.error('TRACE ', now.toGMTString(), ': ', message);

View File

@@ -18,7 +18,7 @@ const ServerBootstrapper = {
.map((arg) => {
return /port=(\d+)/.exec(arg)[1];
})[0] || 5000;
const logLevel = process.env.LOG_LEVEL || args
const logLevel = args
.filter((arg) => {
return /loglevel=[a-zA-Z]+/.test(arg);
})