Skip to content

Commit

Permalink
remove duplicate logs
Browse files Browse the repository at this point in the history
  • Loading branch information
davwas committed Nov 14, 2023
1 parent fb75138 commit 778ac27
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions apps/server/src/modules/tldraw/service/tldraw.ws.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export class TldrawWsService {
this.pingTimeout = this.configService.get<number>('TLDRAW_PING_TIMEOUT');
const redisUrl: string = this.configService.get<string>('REDIS_URI');
this.logger.log(`REDIS URL ${redisUrl}`);
console.log(`REDIS URL ${redisUrl}`);
this.mux = mutex.createMutex();
this.sub = new Redis(redisUrl);
this.pub = new Redis(redisUrl);
Expand Down Expand Up @@ -111,8 +110,6 @@ export class TldrawWsService {
]).then((result) => {
this.logger.log('Update handler redis response: ');
this.logger.log(result[0]);
console.log('Update handler redis response: ');
console.log(result[0]);
return null;
});

Expand Down Expand Up @@ -162,8 +159,6 @@ export class TldrawWsService {
const pubResponse = await this.pub.publishBuffer(doc.awarenessChannel, Buffer.from(update));
this.logger.log('Message handler awareness response: ');
this.logger.log(pubResponse);
console.log('Message handler awareness response: ');
console.log(pubResponse);
applyAwarenessUpdate(doc.awareness, update, conn);
break;
}
Expand Down Expand Up @@ -193,8 +188,6 @@ export class TldrawWsService {
const redisUpdates = await getDocUpdatesFromQueue(this.pub, doc);
this.logger.log('Setup WS Connection redis updates: ');
this.logger.log(redisUpdates);
console.log('Setup WS Connection redis updates: ');
console.log(redisUpdates);
const redisYDoc = new Doc();
redisYDoc.transact(() => {
for (const u of redisUpdates) {
Expand Down

0 comments on commit 778ac27

Please sign in to comment.