Skip to content

Commit 1b1fd58

Browse files
committed
add logs
1 parent 6356808 commit 1b1fd58

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

test/integration/short/control-connection-tests.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,13 @@ describe('ControlConnection', function () {
3636
afterEach(helper.ccmHelper.remove);
3737

3838
it('should subscribe to SCHEMA_CHANGE events and refresh keyspace information', async () => {
39-
const cc = newInstance({ refreshSchemaDelay: 100 });
39+
const options = {};
40+
options.logEmitter = (event, level, className, message, furtherInfo) =>
41+
// eslint-disable-next-line
42+
console.log(`${new Date().toISOString()} [${level}] ${className}: ${message}`, furtherInfo || '');
43+
options.refreshSchemaDelay = 100;
44+
45+
const cc = newInstance(options);
4046
const otherClient = new Client(helper.baseOptions);
4147

4248
helper.afterThisTest(() => otherClient.shutdown());

0 commit comments

Comments
 (0)