Sequelize: Why does sequelize print the resulting SQL to console.log by default?

Created on 28 Jan 2015  路  1Comment  路  Source: sequelize/sequelize

Executing (default): INSERT INTO `acceptable_answer` (`id`,`question_id`,`value`) VALUES ('ccf23a93-a6ac-11e4-9e63-e5ef230294ec','ccdf27c0-a6ac-11e4-9e63-e5ef230294ec','blaz');

I get this printed onto the console by default. How do I turn them off?

Most helpful comment

Pass logging: false to the sequelize constructor.
Generally we like to keep GitHub to actual issues and discussions :)

var sequelize = new Sequelize('', '', '', {
  logging: false
});

>All comments

Pass logging: false to the sequelize constructor.
Generally we like to keep GitHub to actual issues and discussions :)

var sequelize = new Sequelize('', '', '', {
  logging: false
});
Was this page helpful?
0 / 5 - 0 ratings