Skip to content

Commit

Permalink
changed logging for circular obj (PR parse-community#7457)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrezza committed Aug 22, 2021
1 parent f5daa75 commit 023d1cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/LiveQuery/ParseWebSocketServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit 023d1cb

Please sign in to comment.