mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-30 02:48:01 +03:00
Add warning about logger.error usage in config.ts
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user