Skip to content

Commit 58d42af

Browse files
Aaron LuprekAaron Luprek
authored andcommitted
fixing bug where log() would only take one argument, while console.log() can take any number of arguments
1 parent cb8a310 commit 58d42af

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/sqlite3db.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ exports.initialize = function initializeDataSource(dataSource, callback) {
2626
dataSource.connector = connector;
2727
dataSource.connector.dataSource = dataSource;
2828

29-
dataSource.connector.dataSource.log = function (msg) {
30-
console.log(msg);
31-
};
29+
dataSource.connector.dataSource.log = console.log;
3230

3331
if(callback){
3432
dataSource.connecting = true;

0 commit comments

Comments
 (0)