Skip to content

Commit b34c26a

Browse files
committed
[DO NOT MERGE] more debug from JDBC
1 parent a4a9681 commit b34c26a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

packages/cubejs-jdbc-driver/src/JDBCDriver.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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() {

0 commit comments

Comments
 (0)