Skip to content

Commit

Permalink
Reinstate logger
Browse files Browse the repository at this point in the history
  • Loading branch information
stefl committed Nov 27, 2024
1 parent 9dce542 commit c5fb1a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/db/scripts/import-export/validate_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* This script validates the data in the CSV files against the constraints defined in the Prisma schema.
*
**/
import { aiLogger } from "@oakai/logger";
import { Prisma } from "@prisma/client";
import csvParser from "csv-parser";
import dotenv from "dotenv";
Expand All @@ -15,9 +16,11 @@ const dataDir = path.join(__dirname, "data");

dotenv.config();

const logger = aiLogger("db");

// Helper function to log messages
const log = (message: string) => {
console.log(`[LOG] ${new Date().toISOString()}: ${message}`);
logger.info(`[LOG] ${new Date().toISOString()}: ${message}`);
};

// Helper function to get the Prisma model metadata
Expand Down

0 comments on commit c5fb1a3

Please sign in to comment.