Skip to content

Commit 339f4e4

Browse files
committed
Update defaultLogging.js
1 parent 6272fb0 commit 339f4e4

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

js/network/socketiyo/source/defaultLogging.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,21 @@ const useDefaultLogging = ({ socketiYoServer, logger = console }) => {
5454
data,
5555
socket,
5656
}) => {
57-
logger.log(`Receiving data from a socket
58-
${JSON.stringify(data, null, 4)}
59-
at channel ${String(channel)}`);
57+
logger.log(`Receiving data from a socket at channel ${channel}`);
58+
logger.log(data);
6059
});
6160

6261
socketiYoServer.on(RECEIVE_SUBSCRIBE, ({
6362
channel,
6463
socket,
6564
}) => {
66-
logger.log(`Socket subscribing to channel ${String(channel)}`);
65+
logger.log(`Socket subscribing to channel ${channel}`);
6766
});
6867

6968
socketiYoServer.on(RECEIVE_UNSUBSCRIBE, ({
7069
channel,
7170
socket,
7271
}) => {
73-
logger.log(`Socket unsubscribing from channel ${String(channel)}`);
72+
logger.log(`Socket unsubscribing from channel ${channel}`);
7473
});
7574
};

0 commit comments

Comments
 (0)