File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,13 @@ const VARS_REGEXP = /@([\w_$][\d\w_$]*:(string|boolean|date|number|bigint))/g;
1616function 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 ) ;
Original file line number Diff line number Diff line change @@ -14,10 +14,11 @@ let connection;
1414function 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
You can’t perform that action at this time.
0 commit comments