From 5e7162023fc51e2df227bc9c1bd91f42671543fc Mon Sep 17 00:00:00 2001 From: Ran Guin Date: Sat, 15 May 2021 14:49:40 -0700 Subject: tweak debug message --- db/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'db') 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; -- cgit v1.2.3