Change the stub back to console

This commit is contained in:
zkldi
2021-11-10 02:39:46 +00:00
parent b0cb20252e
commit a748aba5e2
+1 -7
View File
@@ -10,14 +10,8 @@ import { FormatPrError } from "utils/prudence";
dotenv.config(); // imports things like NODE_ENV from a local .env file if one is present.
const replicaInfo = process.env.REPLICA_IDENTITY ? ` (${process.env.REPLICA_IDENTITY})` : "";
// stub - having a real logger here creates a circular dependency.
const logger = {
info: (...content: unknown[]) => console.log(replicaInfo, content),
error: (...content: unknown[]) => console.error(replicaInfo, content),
warn: (...content: unknown[]) => console.warn(replicaInfo, content),
}; // CreateLogCtx(__filename);
const logger = console;
const confLocation = process.env.TCHIS_CONF_LOCATION ?? "./conf.json5";