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

Commit 6f7d6b8d by Mick Hansen

Merge pull request #2587 from mbroadst/add-logging-env-var

add environment variable to enable logging during tests
2 parents 334903f5 4a7390b3
Showing with 1 additions and 1 deletions
...@@ -74,7 +74,7 @@ var Support = { ...@@ -74,7 +74,7 @@ var Support = {
var sequelizeOptions = _.defaults(options, { var sequelizeOptions = _.defaults(options, {
host: options.host || config.host, host: options.host || config.host,
logging: false, logging: (process.env.SEQ_LOG ? console.log : false),
dialect: options.dialect, dialect: options.dialect,
port: options.port || process.env.SEQ_PORT || config.port, port: options.port || process.env.SEQ_PORT || config.port,
pool: config.pool, pool: config.pool,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!