Skip to content

Commit 92c10fa

Browse files
committed
Commit cleanups.
1 parent 90b8c42 commit 92c10fa

File tree

4 files changed

+2
-7
lines changed

4 files changed

+2
-7
lines changed

spec/e2e/authentication.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,18 +93,18 @@ describe('Authentication tests', () => {
9393
await testEnv.joinChannelHelper(alice, adminRoomId, channel);
9494
const bridgedClient = await ircBridge.getBridgedClientsForUserId(aliceUserId)[0];
9595
const aliceIrcClient = await bridgedClient.waitForConnected().then(() => bridgedClient.assertConnected());
96+
9697
// Slight gut wrenching to get the fingerprint out.
9798
const getCertResponse = await new Promise((resolve, reject) => {
9899
const timeout = setTimeout(() => reject(new Error('Timed out getting cert response')), 5000);
99100
aliceIrcClient.on('raw', (msg) => {
100-
console.log(msg);
101101
if (msg.rawCommand === '276') {
102102
clearTimeout(timeout);
103103
resolve(msg);
104104
}
105105
});
106106
})
107107
bridgedClient.whois(bridgedClient.nick);
108-
console.log(await getCertResponse);
108+
await getCertResponse;
109109
});
110110
});

spec/unit/pool-service/IrcClientRedisState.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ describe("IrcClientRedisState", () => {
7272
expect(state.loggedIn).toBeTrue();
7373
expect(state.registered).toBeTrue();
7474
expect(state.chans.size).toBe(1);
75-
console.log(state);
7675
});
7776
it('should be able to repair previously buggy state', async () => {
7877
const existingState = {

src/datastore/postgres/PgDataStore.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,6 @@ export class PgDataStore implements DataStore, ProvisioningStore {
536536
const cryptoStore = this.cryptoStore;
537537
if (config.certificate && row.key && cryptoStore) {
538538
try {
539-
console.log(row);
540539
config.certificate.key = await cryptoStore.decryptLargeString(row.key);
541540
}
542541
catch (ex) {
@@ -562,7 +561,6 @@ export class PgDataStore implements DataStore, ProvisioningStore {
562561
password = this.cryptoStore.encrypt(password);
563562
}
564563

565-
console.log(config.certificate);
566564
if (config.certificate && this.cryptoStore) {
567565
keypair.cert = config.certificate.cert;
568566
keypair.key = await this.cryptoStore.encryptLargeString(config.certificate.key);
@@ -578,7 +576,6 @@ export class PgDataStore implements DataStore, ProvisioningStore {
578576
};
579577
const statement = PgDataStore.BuildUpsertStatement(
580578
"client_config", "ON CONSTRAINT cons_client_config_unique", Object.keys(parameters));
581-
console.log(statement, parameters);
582579
await this.pgPool.query(statement, Object.values(parameters));
583580
}
584581

src/irc/ConnectionInstance.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,6 @@ export class ConnectionInstance {
423423
}
424424

425425
log.debug(saslType ? `Connecting using ${saslType} auth` : 'Connecting without authentication');
426-
console.log(secure);
427426

428427
const connectionOpts: IrcClientOpts = {
429428
userName: opts.username,

0 commit comments

Comments
 (0)