Update logging configuration to use TYPEORM_LOGGING environment variable

This commit is contained in:
Marshal
2026-06-30 02:52:19 +00:00
parent a072f04450
commit 9674c9394d

View File

@@ -118,6 +118,6 @@ export default registerAs("database", (): TypeOrmModuleOptions => {
migrationsRun: true,
// Schema changes via migrations only (synchronize breaks ITMLS backfill on existing rows).
synchronize: false,
logging: process.env.NODE_ENV === "development",
logging: process.env.TYPEORM_LOGGING === "true",
};
});