chore: reduce logging

This commit is contained in:
Ricardo Arturo Cabral Mejia 2022-10-28 00:42:24 -04:00
parent e3e7e5d789
commit 82225c47b1
No known key found for this signature in database
GPG Key ID: 5931EBF43A650245
3 changed files with 1 additions and 5 deletions

View File

@ -138,9 +138,8 @@ export class WebSocketAdapter extends EventEmitter implements IWebSocketAdapter
this.alive = true
}
private onClientClose(code: number) {
private onClientClose() {
this.alive = false
console.debug(`worker ${process.pid} - client disconnected with code ${code}`)
this.removeAllListeners()
this.client.removeAllListeners()

View File

@ -64,7 +64,6 @@ export class WebSocketServerAdapter extends WebServerAdapter implements IWebSock
}
private onConnection(client: WebSocket, req: IncomingMessage) {
console.debug(`worker ${process.pid} - new client - ${this.webSocketServer.clients.size} clients`)
this.webSocketsAdapters.set(client, this.createWebSocketAdapter([client, req, this]))
}

View File

@ -19,8 +19,6 @@ export class EventMessageHandler implements IMessageHandler {
public async handleMessage(message: IncomingEventMessage): Promise<void> {
const [, event] = message
console.debug('Received event', event)
let reason = await this.isEventValid(event)
if (reason) {
console.warn(`Event ${event.id} rejected. Reason: ${reason}`)