Skip to content

Commit

Permalink
changed logging for circular obj
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrezza committed Jul 24, 2021
1 parent a92b0a7 commit c75dfeb
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 c75dfeb

Please sign in to comment.