New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding logging: console.log does not work when global logging setting is false #2571

Closed
janmeier opened this Issue Nov 13, 2014 · 0 comments

Comments

1 participant
@janmeier
Member

janmeier commented Nov 13, 2014

new Sequelize(..., {
  logging: false
});

sequelize.sync({ force: true, logging: console.log })

Will not output anything.

As a side-note, it would also be nice to be able to control log output in test with an environment var instead of changing manually in https://github.com/sequelize/sequelize/blob/master/test/support.js#L77

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment