diff options
| author | Ran Guin <[email protected]> | 2021-05-15 14:49:40 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-06-09 16:05:31 -0700 |
| commit | 5e7162023fc51e2df227bc9c1bd91f42671543fc (patch) | |
| tree | d1917d6337aff205a1183193c9065c0ee229ee0b /db | |
| parent | 40bcb30fb2d6e19a9ed2e771510d31c8cf31eca8 (diff) | |
| download | coinos-server-5e7162023fc51e2df227bc9c1bd91f42671543fc.tar.gz coinos-server-5e7162023fc51e2df227bc9c1bd91f42671543fc.zip | |
tweak debug message
Diffstat (limited to 'db')
| -rw-r--r-- | db/index.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/db/index.js b/db/index.js index de9116a8..4005b7d8 100644 --- a/db/index.js +++ b/db/index.js @@ -1,8 +1,8 @@ const Sequelize = require("sequelize"); const conf = config.dbOptions; -const debug = require('debug')('db') +const debug = require('debug')('test') -debug('opt: ', JSON.stringify(conf)) +debug('DB connection: ', conf.database + ':' + conf.user) db = new Sequelize(conf.database, conf.username, conf.password, { host: conf.host, @@ -127,4 +127,5 @@ Order.belongsTo(Account, { foreignKey: "a2_id" }); +debug('added model relationships') db.Order = Order; |
