chore: debug

This commit is contained in:
cha0s 2022-03-22 01:28:56 -05:00
parent 3610a7bd1c
commit 9b68ab87af
2 changed files with 3 additions and 2 deletions

View File

@ -7,6 +7,7 @@ import createIntercom from './create-intercom';
import ServerSocket from './socket';
const debug = D('@flecks/socket/server/sockets');
const debugSilly = D('@flecks/socket/server/sockets:silly');
export default class SocketServer {
@ -78,7 +79,7 @@ export default class SocketServer {
static send(flecks, nsp, packetOrDehydrated) {
const packet = normalize(flecks, packetOrDehydrated);
const {constructor: Packet} = packet;
debug('sending packet %s(%j)', Packet.type, packet.data);
debugSilly('sending packet %s(%j)', Packet.type, packet.data);
try {
nsp.emit(Packet.id, Packet.encode(packet.data));
}

View File

@ -3,7 +3,7 @@ import {ByType, D} from '@flecks/core';
import normalize from './normalize';
import acceptor from './packet/acceptor';
const debug = D('@flecks/socket');
const debug = D('@flecks/socket:silly');
export default class Socket {