Skip to content

Commit

Permalink
adding log to debug settings
Browse files Browse the repository at this point in the history
  • Loading branch information
julien51 committed Apr 19, 2024
1 parent 0bd24fb commit c4e797d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion locksmith/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Object.values(networks).forEach((network) => {

const config = {
database: {
logging: false,
logging: true,
dialect: 'postgres',
},
stripeSecret: process.env.STRIPE_SECRET,
Expand Down
2 changes: 1 addition & 1 deletion locksmith/src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions locksmith/src/models/sequelize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ export const LocksmithDataTypes: LocksmithDataTypesType = {

PgTypes.NETWORK_ID = PgNetworkId

console.log(config.database)
export const sequelize = new Sequelize(config.database)
2 changes: 2 additions & 0 deletions locksmith/src/operations/eventOperations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit c4e797d

Please sign in to comment.