diff --git a/lib/db.js b/lib/db.js index 25a61c1..e4f654f 100644 --- a/lib/db.js +++ b/lib/db.js @@ -13,8 +13,7 @@ var setAssociation = function setAssociation(modelDef, modelName) { console.debug('associate ' + modelName); } }; - -if (app.config('database')) { +if (app.config('database.connections')) { if (app.config('database.connections.options.logging')) { app.config().set('database.connections.options.logging', console.debug); console.log('query debug');