Skip to content

Commit 11de0af

Browse files
committed
Disabled sensitive logging
1 parent bbf0dc3 commit 11de0af

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/actions/insert.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ const VARS_REGEXP = /@([\w_$][\d\w_$]*:(string|boolean|date|number|bigint))/g;
1616
function init(cfg) {
1717
const conString = cfg.uri;
1818
return co(function* gen() {
19-
console.log('Connecting to the database uri=%s', conString);
19+
console.log('Connecting to the database');
2020
const connection = new cosql.Connection(conString);
21-
// Always attach an error listener
21+
// Always attach an error listener
2222
connection.on('error', (err) => this.emit('error', err));
2323
let sql = cfg.query;
2424
yield connection.connect();
25+
console.log('Connection established');
2526
console.log('Preparing query=%s', sql);
2627
const vars = sql.match(VARS_REGEXP);
2728
console.log('Found following prepared variable:type pairs=%j', vars);

lib/actions/select.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ let connection;
1414
function init(cfg) {
1515
const conString = cfg.uri;
1616
return co(function* gen() {
17-
console.log('Connecting to the database uri=%s', conString);
17+
console.log('Connecting to the database');
1818
connection = new cosql.Connection(conString);
1919
connection.on('error', (err) => this.emit('error', err));
2020
yield connection.connect();
21+
console.log('Connection established');
2122
}.bind(this));
2223
}
2324

0 commit comments

Comments
 (0)