fix: adding comprehensive logs for live server (#7947)

* fix: adding comprehensive logs

* fix: document controller naming convention

* fix: axios interception logger
This commit is contained in:
sriram veeraghanta 2025-10-10 18:28:52 +05:30 committed by GitHub
parent 9ce6179421
commit 8cd29c5009
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 112 additions and 72 deletions

View file

@ -1,5 +1,6 @@
import * as dotenv from "@dotenvx/dotenvx";
import { z } from "zod";
import { logger } from "@plane/logger";
dotenv.config();
@ -27,7 +28,7 @@ const envSchema = z.object({
const validateEnv = () => {
const result = envSchema.safeParse(process.env);
if (!result.success) {
console.error("❌ Invalid environment variables:", JSON.stringify(result.error.format(), null, 4));
logger.error("❌ Invalid environment variables:", JSON.stringify(result.error.format(), null, 4));
process.exit(1);
}
return result.data;