From c75dfebf8e682818c4c8fafdf330ff7c743ec02f Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Sun, 25 Jul 2021 01:27:36 +0200 Subject: [PATCH] changed logging for circular obj --- src/LiveQuery/ParseWebSocketServer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/LiveQuery/ParseWebSocketServer.js b/src/LiveQuery/ParseWebSocketServer.js index 606056fc2e..fa521080ed 100644 --- a/src/LiveQuery/ParseWebSocketServer.js +++ b/src/LiveQuery/ParseWebSocketServer.js @@ -2,6 +2,7 @@ import { loadAdapter } from '../Adapters/AdapterLoader'; import { WSAdapter } from '../Adapters/WebSocketServer/WSAdapter'; import logger from '../logger'; import events from 'events'; +import { inspect } from 'util'; export class ParseWebSocketServer { server: Object; @@ -15,7 +16,7 @@ export class ParseWebSocketServer { wss.onConnection = ws => { ws.on('error', error => { logger.error(error.message); - logger.error(JSON.stringify(ws)); + logger.error(inspect(ws, false)); }); onConnect(new ParseWebSocket(ws)); // Send ping to client periodically