Add warning about logger.error usage in config.ts

This commit is contained in:
zkldi
2021-12-20 17:29:11 +00:00
parent 36f8425ba6
commit 8499c02df0
+2
View File
@@ -230,6 +230,8 @@ if (Number.isNaN(port) && process.env.IS_SERVER) {
const redisUrl = process.env.REDIS_URL;
if (!redisUrl) {
// n.b. These logs should be critical level, but the logger cant actually instantiate
// itself in this file, because this file also controlls the logger. Ouch!
logger.error(`No REDIS_URL specified in environment. Terminating.`);
process.exit(1);
}