From c4e797d11d18556fef0ffe938602602824f48967 Mon Sep 17 00:00:00 2001 From: Julien Genestoux Date: Fri, 19 Apr 2024 16:27:10 -0400 Subject: [PATCH] adding log to debug settings --- locksmith/config/config.js | 2 +- locksmith/src/config/config.ts | 2 +- locksmith/src/models/sequelize.ts | 1 + locksmith/src/operations/eventOperations.ts | 2 ++ 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/locksmith/config/config.js b/locksmith/config/config.js index 43e9f3306d6..bed9ba62f68 100644 --- a/locksmith/config/config.js +++ b/locksmith/config/config.js @@ -11,7 +11,7 @@ Object.values(networks).forEach((network) => { const config = { database: { - logging: false, + logging: true, dialect: 'postgres', }, stripeSecret: process.env.STRIPE_SECRET, diff --git a/locksmith/src/config/config.ts b/locksmith/src/config/config.ts index 43e856ff985..43d40e22a46 100644 --- a/locksmith/src/config/config.ts +++ b/locksmith/src/config/config.ts @@ -53,7 +53,7 @@ Object.values(networks).forEach((network) => { const config = { isProduction, database: { - logging: false, + logging: true, dialect: 'postgres', } as Options, stripeSecret: process.env.STRIPE_SECRET, diff --git a/locksmith/src/models/sequelize.ts b/locksmith/src/models/sequelize.ts index cfe97c0576c..8ea22b6cb10 100644 --- a/locksmith/src/models/sequelize.ts +++ b/locksmith/src/models/sequelize.ts @@ -58,4 +58,5 @@ export const LocksmithDataTypes: LocksmithDataTypesType = { PgTypes.NETWORK_ID = PgNetworkId +console.log(config.database) export const sequelize = new Sequelize(config.database) diff --git a/locksmith/src/operations/eventOperations.ts b/locksmith/src/operations/eventOperations.ts index 830b993d8ae..98b8a1a7705 100644 --- a/locksmith/src/operations/eventOperations.ts +++ b/locksmith/src/operations/eventOperations.ts @@ -51,6 +51,8 @@ export const getEventForLock = async ( order: [['updatedAt', 'DESC']], }) + console.log('Found checkout config for ', lockAddress, checkoutConfigs) + // If there are checkout configs, let's see if an even exists with them! // Let's now find any event that uses this checkout config! const event = await EventData.findOne({