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

Commit 04fdd411 by Sascha Depold

Revert "Use the info event for common loggings"

This reverts commit 85dfa296.
1 parent 85dfa296
......@@ -19,7 +19,7 @@ module.exports = (function() {
Query.prototype.run = function(sql) {
this.sql = sql
this.sequelize.log('info', 'Executing (' + this.options.uuid + '): ' + this.sql)
this.sequelize.log('Executing (' + this.options.uuid + '): ' + this.sql)
var resultSet = [],
errorDetected = false,
......
......@@ -19,7 +19,7 @@ module.exports = (function() {
Query.prototype.run = function(sql) {
this.sql = sql
this.sequelize.log('info', 'Executing (' + this.options.uuid + '): ' + this.sql)
this.sequelize.log('Executing (' + this.options.uuid + '): ' + this.sql)
this.client.query(this.sql, function(err, results, fields) {
this.emit('sql', this.sql)
......
......@@ -27,7 +27,7 @@ module.exports = (function() {
, query = this.client.query(sql)
, rows = []
this.sequelize.log('info', 'Executing (' + this.options.uuid + '): ' + this.sql)
this.sequelize.log('Executing (' + this.options.uuid + '): ' + this.sql)
query.on('row', function(row) {
rows.push(row)
......
......@@ -26,7 +26,7 @@ module.exports = (function() {
this.sql = sql
this.sequelize.log('info', 'Executing (' + this.options.uuid + '): ' + this.sql)
this.sequelize.log('Executing (' + this.options.uuid + '): ' + this.sql)
var columnTypes = {}
this.database.serialize(function() {
......
......@@ -43,9 +43,9 @@ module.exports = (function() {
}
if (migrations.length === 0) {
self.sequelize.log('info', "There are no pending migrations.")
self.sequelize.log("There are no pending migrations.")
} else {
self.sequelize.log('info', "Running migrations...")
self.sequelize.log("Running migrations...")
}
migrations.forEach(function(migration) {
......@@ -53,7 +53,7 @@ module.exports = (function() {
chainer.add(migration, 'execute', [options], {
before: function(migration) {
self.sequelize.log('info', migration.filename)
self.sequelize.log(migration.filename)
migrationTime = process.hrtime()
},
......@@ -61,7 +61,7 @@ module.exports = (function() {
migrationTime = process.hrtime(migrationTime)
migrationTime = Math.round( (migrationTime[0] * 1000) + (migrationTime[1] / 1000000));
self.sequelize.log('info', 'Completed in ' + migrationTime + 'ms')
self.sequelize.log('Completed in ' + migrationTime + 'ms')
},
success: function(migration, callback) {
......@@ -181,7 +181,7 @@ module.exports = (function() {
var addMigration = function(filename) {
var migration = new Migration(self, filename)
self.sequelize.log('info', 'Adding migration script at ' + filename)
self.sequelize.log('Adding migration script at ' + filename)
chainer.add(migration, 'execute', [{ method: 'up' }], {
before: function(migration) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!