File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
packages/cubejs-jdbc-driver/src Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -151,9 +151,9 @@ export class JDBCDriver extends BaseDriver {
151151
152152 this . pool = genericPool . createPool ( {
153153 create : async ( ) => {
154- console . log ( " before await this.getCustomClassPath()" , new Error ( ) . stack ) ;
154+ console . log ( ' before await this.getCustomClassPath()' , new Error ( ) . stack ) ;
155155 const ccp = await this . getCustomClassPath ( ) ;
156- console . log ( " before await initMvn(ccp)" ) ;
156+ console . log ( ' before await initMvn(ccp)' ) ;
157157 await initMvn ( ccp ) ;
158158
159159 if ( ! this . jdbcProps ) {
@@ -162,7 +162,7 @@ export class JDBCDriver extends BaseDriver {
162162 }
163163
164164 const getConnection = promisify ( DriverManager . getConnection . bind ( DriverManager ) ) ;
165- console . log ( " new Connection this.config.url" , this . config . url ) ;
165+ console . log ( ' new Connection this.config.url' , this . config . url ) ;
166166 return new Connection ( await getConnection ( this . config . url , this . jdbcProps ) ) ;
167167 } ,
168168 // @ts -expect-error Promise<Function> vs Promise<void>
@@ -201,6 +201,10 @@ export class JDBCDriver extends BaseDriver {
201201 acquireTimeoutMillis : 120000 ,
202202 ...( poolOptions || { } )
203203 } ) as ExtendedPool ;
204+
205+ this . pool . on ( 'factoryCreateError' , ( err ) => {
206+ console . log ( 'pool factoryCreateError' , err ) ;
207+ } ) ;
204208 }
205209
206210 protected async getCustomClassPath ( ) {
You can’t perform that action at this time.
0 commit comments