diff options
author | Vitaly Takmazov | 2024-10-21 07:10:20 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-10-21 07:10:20 +0300 |
commit | dd962bcb1ebcbff9dd28ada9156786b9a9ed92a6 (patch) | |
tree | 167b3b30a4eea520c7fbd7da6bb15c2847ecc3cb /vnext/server/db | |
parent | ca6c011351afe7c3be5b1ab8b5cf87db10514263 (diff) |
vnext: Use actual express app for tests
* use `debug` for sequelize logging
Diffstat (limited to 'vnext/server/db')
-rw-r--r-- | vnext/server/db/index.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vnext/server/db/index.js b/vnext/server/db/index.js index c6c9ca24..9c9e564b 100644 --- a/vnext/server/db/index.js +++ b/vnext/server/db/index.js @@ -1,5 +1,10 @@ +import debug from 'debug' +var log = debug('db') + import { Sequelize } from 'sequelize' -const db = new Sequelize(process.env.DATABASE_URL) +const db = new Sequelize(process.env.DATABASE_URL, { + logging: (...msg) => log(msg) +}) export default db |