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

Commit 35b6a2c3 by Sascha Depold

print the uuid of the client as well

1 parent bbb8c8c9
...@@ -161,13 +161,15 @@ module.exports = (function() { ...@@ -161,13 +161,15 @@ module.exports = (function() {
sql: sql sql: sql
}; };
enqueue.call(this, queueItem, options); queueItem.query.options.uuid = this.config.uuid
return queueItem.query; enqueue.call(this, queueItem, options)
return queueItem.query
} }
var self = this, query = new Query(this.client, this.sequelize, callee, options || {}); var self = this, query = new Query(this.client, this.sequelize, callee, options || {});
this.pendingQueries++; this.pendingQueries++;
query.options.uuid = this.config.uuid
query.done(function() { query.done(function() {
self.pendingQueries--; self.pendingQueries--;
if (self.pool) { if (self.pool) {
......
...@@ -20,7 +20,7 @@ module.exports = (function() { ...@@ -20,7 +20,7 @@ module.exports = (function() {
this.sql = sql this.sql = sql
if (this.options.logging !== false) { if (this.options.logging !== false) {
this.options.logging('Executing: ' + this.sql) this.options.logging('Executing (' + this.options.uuid + '): ' + this.sql)
} }
this.client.query(this.sql, function(err, results, fields) { this.client.query(this.sql, function(err, results, fields) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!