Skip to content

Commit d5e4f7f

Browse files
committed
Replace commented-out log with a debug().
1 parent ea6cc98 commit d5e4f7f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

machines/send-native-query.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,20 +123,18 @@ module.exports = {
123123

124124
// e.g. `'$3'` => `'3'` => `3` => `2`
125125
var idx = +( substr.slice(1) ) - 1;
126-
// console.log('idx:',idx);
127126

128127
// If no such binding exists, then just leave the original
129128
// template string (e.g. "$3") alone.
130129
if (idx >= bindings.length) {
131130
return substr;
132131
}
133-
// console.log('bindings[idx]:',bindings[idx]);
134132

135133
// But otherwise, replace it with the escaped binding.
136134
return inputs.connection.escape(bindings[idx]);
137135
});
138136

139-
// console.log('Running compiled SQL:',sql);
137+
debug('Compiled (final) SQL: ' + sql);
140138

141139
// Send native query to the database using node-mysql.
142140
inputs.connection.query(sql, function query() {

0 commit comments

Comments
 (0)