不要怂,就是干,撸起袖子干!

Commit 7ea1f5f4 by sdepold

formatting + logging info

1 parent 2135e2f4
Showing with 7 additions and 2 deletions
...@@ -21,6 +21,11 @@ module.exports = (function() { ...@@ -21,6 +21,11 @@ module.exports = (function() {
this.options.logging = console.log this.options.logging = console.log
} }
if(this.options.logging == console.log) {
// using just console.log will break in node < 0.6
this.options.logging = function(s) { console.log(s) }
}
this.config = { this.config = {
database: database, database: database,
username: username, username: username,
...@@ -31,8 +36,8 @@ module.exports = (function() { ...@@ -31,8 +36,8 @@ module.exports = (function() {
var ConnectorManager = require("./dialects/" + this.options.dialect + "/connector-manager") var ConnectorManager = require("./dialects/" + this.options.dialect + "/connector-manager")
this.daoFactoryManager = new DAOFactoryManager(this) this.daoFactoryManager = new DAOFactoryManager(this)
this.connectorManager = new ConnectorManager(this, this.config) this.connectorManager = new ConnectorManager(this, this.config)
} }
Sequelize.Utils = Utils Sequelize.Utils = Utils
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!